MDLAuthor Class Reference
| Inherits from | NSObject |
| Declared in | MDLAuthor.h MDLAuthor.m |
Tasks
-
nameThe author name
property -
+ authorWithName:Creates a
MDLAuthorand initializes its name property. -
+ fetchTopAuthorsInPublicLibraryForCategory:upAndComing:success:failure:Sends a top authors API request using the shared client and fetches the response as an array of
MDLAuthor. -
+ fetchTopAuthorsInUserLibrarySuccess:failure:Sends a user top authors API request using the shared client and fetches the response as an array of
MDLAuthor.
Class Methods
authorWithName:
Creates a MDLAuthor and initializes its name property.
+ (MDLAuthor *)authorWithName:(NSString *)nameParameters
- name
The name of the author.
Return Value
The newly-initialized author.
Discussion
Creates a MDLAuthor and initializes its name property.
Declared In
MDLAuthor.hfetchTopAuthorsInPublicLibraryForCategory:upAndComing:success:failure:
Sends a top authors API request using the shared client and fetches the response as an array of MDLAuthor.
+ (void)fetchTopAuthorsInPublicLibraryForCategory:(NSString *)categoryIdentifier upAndComing:(BOOL)upAndComing success:(void ( ^ ) ( NSArray *))success failure:(void ( ^ ) ( NSError *))failureParameters
- categoryIdentifier
If not
nil, the identifier of the category, otherwise across all categories.
- upAndComing
If true, results apply to ‘trending’ authors.
- success
A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: an array of
MDLAuthorobjects.
- failure
A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the resonse data. This block has no return value and takes one argument: the
NSErrorobject describing the network or parsing error that occurred.
Discussion
Sends a top authors API request using the shared client and fetches the response as an array of MDLAuthor.
See Also
Declared In
MDLAuthor.hfetchTopAuthorsInUserLibrarySuccess:failure:
Sends a user top authors API request using the shared client and fetches the response as an array of MDLAuthor.
+ (void)fetchTopAuthorsInUserLibrarySuccess:(void ( ^ ) ( NSArray *))success failure:(void ( ^ ) ( NSError *))failureParameters
- success
A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: an array of
MDLAuthorobjects.
- failure
A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the resonse data. This block has no return value and takes one argument: the
NSErrorobject describing the network or parsing error that occurred.
Discussion
Sends a user top authors API request using the shared client and fetches the response as an array of MDLAuthor.
Declared In
MDLAuthor.h