Created
March 10, 2014 14:27
-
-
Save brianmichel/9465916 to your computer and use it in GitHub Desktop.
mantle awesome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (NSDictionary *)JSONKeyPathsByPropertyKey { | |
return [[super JSONKeyPathsByPropertyKey] mtl_dictionaryByAddingEntriesFromDictionary: | |
@{ | |
@"caption" : @"caption", | |
@"player" : @"player", | |
@"plays" : @"plays", | |
@"albumArtURL" : @"album_art", | |
@"artist" : @"artist", | |
@"album" : @"album", | |
@"trackName" : @"track_name", | |
@"trackNumber" : @"track_number", | |
@"year" : @"year" | |
}]; | |
} | |
+ (NSValueTransformer *)album_artJSONTransformer { | |
return [NSValueTransformer valueTransformerForName:MTLURLValueTransformerName]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment