Profile
Expression Extends:
class Profile extends aggregate(ProfileModel, Helper)
Helper class representing a user profile.
Constructor Summary
Public Constructor | ||
public |
constructor(json: Object) Constructor for helper class representing a Profile |
Member Summary
Public Members | ||
public |
avatar: * |
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
Private Members | ||
private |
_relationships: {} |
Method Summary
Public Methods | ||
public |
Returns the full address of the user |
|
public |
Returns the full name of the user. |
|
public |
Updates the profile information for the current instance of profile. |
|
public |
toJSON(): * |
Public Constructors
Public Methods
public getFullAddress(): String source
Returns the full address of the user
Example:
client.getProfile().then(profile => {
console.log('Full Address', profile.getFullAddress());
});
public getFullName(): String source
Returns the full name of the user.
Example:
client.getProfile().then(profile => {
console.log('Full Name', profile.getFullName());
});
public save(): Promise source
Updates the profile information for the current instance of profile. This method should be called after making changes to the profile object. I.e. profile.age = 25 then call profile.save() to save this change.
Example:
client.getProfile().then(profile => {
profile.zip_code = '12345';
profile.save().then((response) => {
console.log(response);
});
});