MDLPublication Class Reference
| Inherits from | NSObject |
| Declared in | MDLPublication.h MDLPublication.m |
Tasks
-
nameThe publication name.
property -
+ publicationWithName:Creates a
MDLPublicationand initializes its name property. -
+ fetchTopPublicationsInPublicLibraryForCategory:upAndComing:success:failure:Sends a top publication API request using the shared client and fetches the response as an array of
MDLPublication. -
+ fetchTopPublicationsInUserLibrarySuccess:failure:Sends a user top publication API request using the shared client and fetches the response as an array of
MDLPublication.
Class Methods
fetchTopPublicationsInPublicLibraryForCategory:upAndComing:success:failure:
Sends a top publication API request using the shared client and fetches the response as an array of MDLPublication.
+ (void)fetchTopPublicationsInPublicLibraryForCategory:(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’ publications.
- 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
MDLPublicationobjects.
- 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 publication API request using the shared client and fetches the response as an array of MDLPublication.
Declared In
MDLPublication.hfetchTopPublicationsInUserLibrarySuccess:failure:
Sends a user top publication API request using the shared client and fetches the response as an array of MDLPublication.
+ (void)fetchTopPublicationsInUserLibrarySuccess:(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
MDLPublicationobjects.
- 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 publication API request using the shared client and fetches the response as an array of MDLPublication.
Declared In
MDLPublication.hpublicationWithName:
Creates a MDLPublication and initializes its name property.
+ (MDLPublication *)publicationWithName:(NSString *)nameParameters
- name
The name of the publication.
Return Value
The newly-initialized publication.
Discussion
Creates a MDLPublication and initializes its name property.
Declared In
MDLPublication.h