public class User extends Object
Modifier and Type | Field and Description |
---|---|
String |
accessToken |
String |
apiKey |
String |
avatarURL |
String |
broker |
String |
email |
String[] |
exchanges |
Date |
loginTime |
String[] |
orderTypes |
String[] |
products |
String |
publicToken |
String |
refreshToken |
String |
shortName |
String |
userId |
String |
userName |
String |
userType |
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
parseArray(User user,
org.json.JSONObject response)
Parses array details of product, exchange and order_type from json response.
|
User |
parseResponse(org.json.JSONObject response)
Parses user details response from server.
|
public String[] products
@SerializedName(value="user_name") public String userName
@SerializedName(value="broker") public String broker
@SerializedName(value="access_token") public String accessToken
@SerializedName(value="public_token") public String publicToken
@SerializedName(value="user_type") public String userType
@SerializedName(value="user_id") public String userId
@SerializedName(value="login_time") public Date loginTime
@SerializedName(value="api_key") public String apiKey
public String[] exchanges
public String[] orderTypes
@SerializedName(value="email") public String email
@SerializedName(value="refresh_token") public String refreshToken
@SerializedName(value="user_shortname") public String shortName
@SerializedName(value="avatar_url") public String avatarURL
public User parseResponse(org.json.JSONObject response) throws org.json.JSONException
response
- is the json response from server.org.json.JSONException
- is thrown when there is error while parsing response.public User parseArray(User user, org.json.JSONObject response) throws org.json.JSONException
response
- is the json response from server.user
- is the object to which data is copied to from json response.org.json.JSONException
Copyright © 2022. All rights reserved.