ProfileModel
Model representing a user profile.
Constructor Summary
Public Constructor | ||
public |
constructor(response: Object) |
Member Summary
Public Members | ||
public |
[stringToCamel(key)]: Any |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Public Constructors
public constructor(response: Object) source
Params:
Name | Type | Attribute | Description |
response | Object | JSON formatted response of a user profile. |
|
response.username | String | The username of the profile |
|
response.first_name | String | First name of the user |
|
response.last_name | String | The last name of the user |
|
response.avatar | Object | The avatar value of the profile |
|
response.gender | String | The user's gender |
|
response.age | Number | The age of the user |
|
response.ethnicity | String | The user's ethnicity |
|
response.zip_code | String | Zip code of the user |
|
response.occupation | String | User's occupation |
|
response.phone | String | Phone number of the user |
|
response.city | String | The city portion of the user's address |
|
response.dob | String | The user's date of birth |
|
response.updated_at | String | The last time the user profile was updated |
|
response.timezone | String | The timezone of the user profile |
|
response.state | String | The state portion of the user's address |
|
response.street | String | The street portion of the user's address |
|
response.occupation | String | The user's occupation |
|
response.middle_initial | String | The user's middle initial |
|
response.id | Number | The profile ID value |
|
response.created_at | String | The date that the profile was created on |
|
response.nodes | Array | Node values of the profile |