public class SimpleProfileRequest extends SimpleRequest
Request to return a user profile.
The request data object is defined as an empty JSON object.
SimpleRequest.Type| Constructor and Description |
|---|
SimpleProfileRequest(java.lang.String identity,
SimpleUser user,
org.json.JSONObject data)
Create a new user profile request.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleRespondMessageContext |
execute()
Executes the operation and returns the response.
|
org.json.JSONObject |
getData() |
getIdentity, getType, getUser, parse, toJSONStringpublic SimpleProfileRequest(java.lang.String identity,
SimpleUser user,
org.json.JSONObject data)
throws SimpleRequestUserException
Create a new user profile request.
identity - requesting entity identity.user - requesting user.data - the request data.SimpleRequestUserException - if the user is null.public org.json.JSONObject getData()
getData in class SimpleRequestpublic SimpleRespondMessageContext execute()
SimpleRequestExecutes the operation and returns the response.
execute in class SimpleRequest