Inherits from NSObject
Declared in MDLPublication.h
MDLPublication.m

Overview

MDLPublication represents a publication, as described by Mendeley.

Tasks

Properties

name

The publication name.

@property (copy, nonatomic) NSString *name

Discussion

The publication name.

Declared In

MDLPublication.h

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 *))failure

Parameters

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 MDLPublication 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 top publication API request using the shared client and fetches the response as an array of MDLPublication.

Declared In

MDLPublication.h

fetchTopPublicationsInUserLibrarySuccess: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 *))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 MDLPublication 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 top publication API request using the shared client and fetches the response as an array of MDLPublication.

Declared In

MDLPublication.h

publicationWithName:

Creates a MDLPublication and initializes its name property.

+ (MDLPublication *)publicationWithName:(NSString *)name

Parameters

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