Package com.tapkey.mobile.model
Class CommandResult.UserCommandResult
- java.lang.Object
-
- com.tapkey.mobile.model.CommandResult.UserCommandResult
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CommandResult
public static class CommandResult.UserCommandResult extends Object implements Serializable
The result of a user command. Contains a result code and additional response data. May be treated likeCommandResult.CommandResultCode.TechnicalError
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandResult.UserCommandResult.UserCommandResultCode
Represents a user command's result code.
-
Constructor Summary
Constructors Constructor Description UserCommandResult(String userId, CommandResult.UserCommandResult.UserCommandResultCode userCommandResultCode, Object responseData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getResponseData()
Returns the response data of the user command.CommandResult.UserCommandResult.UserCommandResultCode
getUserCommandResultCode()
Returns the result code of the user command.String
getUserId()
Returns the ID of the user who executed the command.
-
-
-
Constructor Detail
-
UserCommandResult
public UserCommandResult(String userId, CommandResult.UserCommandResult.UserCommandResultCode userCommandResultCode, Object responseData)
-
-
Method Detail
-
getUserId
public String getUserId()
Returns the ID of the user who executed the command.- Returns:
- the user's ID.
-
getUserCommandResultCode
public CommandResult.UserCommandResult.UserCommandResultCode getUserCommandResultCode()
Returns the result code of the user command.- Returns:
- the result code of the user command.
-
getResponseData
public Object getResponseData()
Returns the response data of the user command.- Returns:
- the response data of the user command.
-
-