MDLUser Class Reference
| Inherits from | NSObject |
| Declared in | MDLUser.h MDLUser.m |
Tasks
-
nameThe user name.
property -
academicStatusThe user academic status.
property -
academicStatusIdentifierThe user academic status identifier.
property -
bioThe user bio.
property -
categoryThe user category.
property -
locationThe user location.
property -
photoURLThe user pohoto URL.
property -
identifierThe user identifier, as generated by Mendeley.
property -
researchInterestsThe user research interests.
property -
mendeleyURLThe user Mendeley URL.
property -
contactAddressThe user contact address
property -
contactEmailThe user contact email
property -
contactFaxThe user contact fax
property -
contactMobileThe user contact mobile
property -
contactPhoneThe user contact phone
property -
contactWebpageThe user contact webpage
property -
contactZIPCodeThe user contact ZIP code
property -
+ userWithIdentifier:name:Creates a
MDLUserand initializes its identifier and name properties. -
+ fetchMyUserProfileSuccess:failure:Sends a profile information API request using the shared client and fetches the response as a
MDLUser. -
+ fetchContactsSuccess:failure:Sends a contacts API request using the shared client and fetches the response as an array of
MDLUser. -
– fetchProfileSuccess:failure:Sends a profile information API request using the shared client and fetches the response as a
MDLUser. -
– sendContactRequestSuccess:failure:Sends an add contact API request using the shared client.
Properties
academicStatus
The user academic status.
@property (copy, nonatomic) NSString *academicStatusDiscussion
The user academic status.
Declared In
MDLUser.hacademicStatusIdentifier
The user academic status identifier.
@property (copy, nonatomic) NSString *academicStatusIdentifierDiscussion
The user academic status identifier.
Declared In
MDLUser.hbio
The user bio.
@property (copy, nonatomic) NSString *bioDiscussion
The user bio.
Declared In
MDLUser.hcategory
The user category.
@property (strong, nonatomic) MDLCategory *categoryDiscussion
The user category.
Declared In
MDLUser.hcontactAddress
The user contact address
@property (copy, nonatomic) NSString *contactAddressDiscussion
The user contact address
Declared In
MDLUser.hcontactEmail
The user contact email
@property (copy, nonatomic) NSString *contactEmailDiscussion
The user contact email
Declared In
MDLUser.hcontactFax
The user contact fax
@property (copy, nonatomic) NSString *contactFaxDiscussion
The user contact fax
Declared In
MDLUser.hcontactMobile
The user contact mobile
@property (copy, nonatomic) NSString *contactMobileDiscussion
The user contact mobile
Declared In
MDLUser.hcontactPhone
The user contact phone
@property (copy, nonatomic) NSString *contactPhoneDiscussion
The user contact phone
Declared In
MDLUser.hcontactWebpage
The user contact webpage
@property (copy, nonatomic) NSString *contactWebpageDiscussion
The user contact webpage
Declared In
MDLUser.hcontactZIPCode
The user contact ZIP code
@property (copy, nonatomic) NSString *contactZIPCodeDiscussion
The user contact ZIP code
Declared In
MDLUser.hidentifier
The user identifier, as generated by Mendeley.
@property (copy, nonatomic) NSString *identifierDiscussion
The user identifier, as generated by Mendeley.
Declared In
MDLUser.hlocation
The user location.
@property (copy, nonatomic) NSString *locationDiscussion
The user location.
Declared In
MDLUser.hmendeleyURL
The user Mendeley URL.
@property (strong, nonatomic) NSURL *mendeleyURLDiscussion
The user Mendeley URL.
Declared In
MDLUser.hname
The user name.
@property (copy, nonatomic) NSString *nameDiscussion
The user name.
Declared In
MDLUser.hClass 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 *))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
MDLUserobjects.
- 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 contacts API request using the shared client and fetches the response as an array of MDLUser.
Declared In
MDLUser.hfetchMyUserProfileSuccess: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 *))failureParameters
- success
A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: a
MDLUserobject.
- 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 profile information API request using the shared client and fetches the response as a MDLUser.
Declared In
MDLUser.huserWithIdentifier:name:
Creates a MDLUser and initializes its identifier and name properties.
+ (MDLUser *)userWithIdentifier:(NSString *)identifier name:(NSString *)nameReturn Value
The newly-initialized user.
Discussion
Creates a MDLUser and initializes its identifier and name properties.
Declared In
MDLUser.hInstance 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 *))failureParameters
- success
A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: a
MDLUserobject.
- 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 profile information API request using the shared client and fetches the response as a MDLUser.
Declared In
MDLUser.hsendContactRequestSuccess:failure:
Sends an add contact API request using the shared client.
- (void)sendContactRequestSuccess:(void ( ^ ) ( ))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 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
NSErrorobject describing the network or parsing error that occurred.
Discussion
Sends an add contact API request using the shared client.
Declared In
MDLUser.h