MDLTag Class Reference
Inherits from | NSObject |
Declared in | MDLTag.h MDLTag.m |
Tasks
-
name
The tag name.
property -
count
The tag count.
property -
+ tagWithName:count:
Creates a
MDLTag
and 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 *))failure
Parameters
- 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
MDLTag
objects.
- 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
NSError
object 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.h
fetchLastTagsInUserLibrarySuccess: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 *))failure
Parameters
- 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
MDLTag
objects.
- 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
NSError
object 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