MDLTag Class Reference
| Inherits from | NSObject |
| Declared in | MDLTag.h MDLTag.m |
Tasks
-
nameThe tag name.
property -
countThe tag count.
property -
+ tagWithName:count:Creates a
MDLTagand initializes its name and count properties. -
+ fetchLastTagsInPublicLibraryForCategory:success:failure:Sends a last tags API request using the shared client and fetches the response as an array of
MDLTag. -
+ fetchLastTagsInUserLibrarySuccess:failure:Sends a user last tags API request using the shared client and fetches the response as an array of
MDLTag.
Properties
Class Methods
fetchLastTagsInPublicLibraryForCategory:success:failure:
Sends a last tags API request using the shared client and fetches the response as an array of MDLTag.
+ (void)fetchLastTagsInPublicLibraryForCategory:(NSString *)categoryIdentifier success:(void ( ^ ) ( NSArray *))success failure:(void ( ^ ) ( NSError *))failureParameters
- categoryIdentifier
The identifier of the category. This value must not be nil.
- 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
MDLTagobjects.
- 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 last tags API request using the shared client and fetches the response as an array of MDLTag.
See Also
Declared In
MDLTag.hfetchLastTagsInUserLibrarySuccess:failure:
Sends a user last tags API request using the shared client and fetches the response as an array of MDLTag.
+ (void)fetchLastTagsInUserLibrarySuccess:(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
MDLTagobjects.
- 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 last tags API request using the shared client and fetches the response as an array of MDLTag.
See Also
Declared In
MDLTag.h