MDLCategory Class Reference
| Inherits from | NSObject |
| Declared in | MDLCategory.h MDLCategory.m |
Tasks
-
identifierThe category identifier, as generated by Mendeley.
property -
nameThe category name.
property -
slugThe category slug.
property -
+ categoryWithIdentifier:name:slug:Creates a
MDLCategoryand initializes its identifier, name, and slug properties. -
+ fetchCategoriesSuccess:failure:Sends a categories API request using the shared client and fetches the response as an array of
MDLCategory. -
– fetchSubcategoriesSuccess:failure:Sends a subcategories API request using the shared client and fetches the response as an array of
MDLSubcategory. -
– fetchLastTagsInPublicLibrarySuccess:failure:Sends a last tags API request using the shared client and fetches the response as an array of
MDLTag.
Properties
identifier
The category identifier, as generated by Mendeley.
@property (copy, nonatomic) NSString *identifierDiscussion
The category identifier, as generated by Mendeley.
Declared In
MDLCategory.hClass Methods
categoryWithIdentifier:name:slug:
Creates a MDLCategory and initializes its identifier, name, and slug properties.
+ (MDLCategory *)categoryWithIdentifier:(NSString *)identifier name:(NSString *)name slug:(NSString *)slugParameters
- identifier
The identifier of the category.
- name
The name of the category.
- slug
The slug of the category.
Return Value
The newly-initialized category.
Discussion
Creates a MDLCategory and initializes its identifier, name, and slug properties.
Declared In
MDLCategory.hfetchCategoriesSuccess:failure:
Sends a categories API request using the shared client and fetches the response as an array of MDLCategory.
+ (void)fetchCategoriesSuccess:(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
MDLCategoryobjects.
- 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 categories API request using the shared client and fetches the response as an array of MDLCategory.
See Also
Declared In
MDLCategory.hInstance Methods
fetchLastTagsInPublicLibrarySuccess:failure:
Sends a last tags API request using the shared client and fetches the response as an array of MDLTag.
- (void)fetchLastTagsInPublicLibrarySuccess:(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 last tags API request using the shared client and fetches the response as an array of MDLTag.
See Also
Declared In
MDLCategory.hfetchSubcategoriesSuccess:failure:
Sends a subcategories API request using the shared client and fetches the response as an array of MDLSubcategory.
- (void)fetchSubcategoriesSuccess:(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
MDLSubcategoryobjects.
- 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 subcategories API request using the shared client and fetches the response as an array of MDLSubcategory.
Declared In
MDLCategory.h