Inherits from NSObject
Declared in MDLUser.h
MDLUser.m

Overview

MDLUser represents a user, as described by Mendeley.

Tasks

Properties

academicStatus

The user academic status.

@property (copy, nonatomic) NSString *academicStatus

Discussion

The user academic status.

Declared In

MDLUser.h

academicStatusIdentifier

The user academic status identifier.

@property (copy, nonatomic) NSString *academicStatusIdentifier

Discussion

The user academic status identifier.

Declared In

MDLUser.h

bio

The user bio.

@property (copy, nonatomic) NSString *bio

Discussion

The user bio.

Declared In

MDLUser.h

category

The user category.

@property (strong, nonatomic) MDLCategory *category

Discussion

The user category.

Declared In

MDLUser.h

contactAddress

The user contact address

@property (copy, nonatomic) NSString *contactAddress

Discussion

The user contact address

Declared In

MDLUser.h

contactEmail

The user contact email

@property (copy, nonatomic) NSString *contactEmail

Discussion

The user contact email

Declared In

MDLUser.h

contactFax

The user contact fax

@property (copy, nonatomic) NSString *contactFax

Discussion

The user contact fax

Declared In

MDLUser.h

contactMobile

The user contact mobile

@property (copy, nonatomic) NSString *contactMobile

Discussion

The user contact mobile

Declared In

MDLUser.h

contactPhone

The user contact phone

@property (copy, nonatomic) NSString *contactPhone

Discussion

The user contact phone

Declared In

MDLUser.h

contactWebpage

The user contact webpage

@property (copy, nonatomic) NSString *contactWebpage

Discussion

The user contact webpage

Declared In

MDLUser.h

contactZIPCode

The user contact ZIP code

@property (copy, nonatomic) NSString *contactZIPCode

Discussion

The user contact ZIP code

Declared In

MDLUser.h

identifier

The user identifier, as generated by Mendeley.

@property (copy, nonatomic) NSString *identifier

Discussion

The user identifier, as generated by Mendeley.

Declared In

MDLUser.h

location

The user location.

@property (copy, nonatomic) NSString *location

Discussion

The user location.

Declared In

MDLUser.h

mendeleyURL

The user Mendeley URL.

@property (strong, nonatomic) NSURL *mendeleyURL

Discussion

The user Mendeley URL.

Declared In

MDLUser.h

name

The user name.

@property (copy, nonatomic) NSString *name

Discussion

The user name.

Declared In

MDLUser.h

photoURL

The user pohoto URL.

@property (strong, nonatomic) NSURL *photoURL

Discussion

The user pohoto URL.

Declared In

MDLUser.h

researchInterests

The user research interests.

@property (copy, nonatomic) NSString *researchInterests

Discussion

The user research interests.

Declared In

MDLUser.h

Class Methods

fetchContactsSuccess:failure:

Sends a contacts API request using the shared client and fetches the response as an array of MDLUser.

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

Declared In

MDLUser.h

fetchMyUserProfileSuccess:failure:

Sends a profile information API request using the shared client and fetches the response as a MDLUser.

+ (void)fetchMyUserProfileSuccess:(void ( ^ ) ( MDLUser *))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: a MDLUser object.

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 profile information API request using the shared client and fetches the response as a MDLUser.

Declared In

MDLUser.h

userWithIdentifier:name:

Creates a MDLUser and initializes its identifier and name properties.

+ (MDLUser *)userWithIdentifier:(NSString *)identifier name:(NSString *)name

Parameters

identifier

The identifier of the user.

name

The name of the user.

Return Value

The newly-initialized user.

Discussion

Creates a MDLUser and initializes its identifier and name properties.

Declared In

MDLUser.h

Instance Methods

fetchProfileSuccess:failure:

Sends a profile information API request using the shared client and fetches the response as a MDLUser.

- (void)fetchProfileSuccess:(void ( ^ ) ( MDLUser *))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: a MDLUser object.

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 profile information API request using the shared client and fetches the response as a MDLUser.

Declared In

MDLUser.h

sendContactRequestSuccess:failure:

Sends an add contact API request using the shared client.

- (void)sendContactRequestSuccess:(void ( ^ ) ( ))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 no argument.

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 an add contact API request using the shared client.

Declared In

MDLUser.h