Inherits from NSObject
Declared in MDLTag.h
MDLTag.m

Overview

MDLTag represents a category tag, as described by Mendeley.

Tasks

Properties

count

The tag count.

@property (copy, nonatomic) NSNumber *count

Discussion

The tag count.

Declared In

MDLTag.h

name

The tag name.

@property (copy, nonatomic) NSString *name

Discussion

The tag name.

Declared In

MDLTag.h

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.

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.

Declared In

MDLTag.h

tagWithName:count:

Creates a MDLTag and initializes its name and count properties.

+ (MDLTag *)tagWithName:(NSString *)name count:(NSNumber *)count

Parameters

name

The name of the tag.

count

The count of the tag.

Return Value

The newly-initialized tag.

Discussion

Creates a MDLTag and initializes its name and count properties.

Declared In

MDLTag.h