Inherits from NSObject
Declared in MDLAuthor.h
MDLAuthor.m

Overview

MDLAuthor represents a document’s author, as described by Mendeley.

Tasks

Properties

name

The author name

@property (copy, nonatomic) NSString *name

Discussion

The author name

Declared In

MDLAuthor.h

Class Methods

authorWithName:

Creates a MDLAuthor and initializes its name property.

+ (MDLAuthor *)authorWithName:(NSString *)name

Parameters

name

The name of the author.

Return Value

The newly-initialized author.

Discussion

Creates a MDLAuthor and initializes its name property.

Declared In

MDLAuthor.h

fetchTopAuthorsInPublicLibraryForCategory:upAndComing:success:failure:

Sends a top authors API request using the shared client and fetches the response as an array of MDLAuthor.

+ (void)fetchTopAuthorsInPublicLibraryForCategory:(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’ authors.

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

Declared In

MDLAuthor.h

fetchTopAuthorsInUserLibrarySuccess:failure:

Sends a user top authors API request using the shared client and fetches the response as an array of MDLAuthor.

+ (void)fetchTopAuthorsInUserLibrarySuccess:(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 MDLAuthor 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 authors API request using the shared client and fetches the response as an array of MDLAuthor.

Declared In

MDLAuthor.h