public static class GKCard.Response
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
mDataFile
The
File representing the location that any data is stored from a response |
protected java.lang.String |
mMessage
The
String message received at the conclusion of the action. |
protected int |
mStatus
The numeric status code received at the conclusion of the action.
|
| Constructor and Description |
|---|
Response(byte[] commandData)
Create a
Response with the given command data. |
Response(byte[] commandData,
java.io.File bodyDataFile)
Create a
Response with the given command and body data. |
Response(GKCard.Response response)
Create a
Response with the basic attributes of the given Response. |
Response(int status,
java.lang.String message)
Create a
Response with the given status code and message. |
Response(int status,
java.lang.String message,
java.io.File dataFile)
Create a
Response with the given status code, message, and dataFile. |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getDataFile()
Retrieve the body data of the Response.
|
java.lang.String |
getMessage()
Retrieve the message of the Response.
|
int |
getStatus()
Retrieve the status code of the Response.
|
java.lang.String |
getStatusMessage()
Retrieve the status message of the Response.
|
java.lang.String |
readDataFile()
Read the data file to a String.
|
void |
setDataFile(java.io.File dataFile)
Assign the file that holds the Response data.
|
protected int mStatus
protected java.lang.String mMessage
String message received at the conclusion of the action.protected java.io.File mDataFile
File representing the location that any data is stored from a responsepublic Response(GKCard.Response response)
Response with the basic attributes of the given Response.response - the Response object to copypublic Response(int status,
java.lang.String message)
Response with the given status code and message.status - the numeric status code to classify this responsemessage - the String message to describe this responsepublic Response(int status,
java.lang.String message,
java.io.File dataFile)
Response with the given status code, message, and dataFile.status - the numeric status code to classify this responsemessage - the String message to describe this responsedataFile - the File that holds body data for this responsepublic Response(byte[] commandData)
Response with the given command data.commandData - the data containing the status code and messagepublic Response(byte[] commandData,
java.io.File bodyDataFile)
Response with the given command and body data.commandData - the data containing the status code and messagebodyDataFile - the File containing body datapublic int getStatus()
public java.lang.String getMessage()
String messagepublic java.lang.String getStatusMessage()
public java.io.File getDataFile()
File that hold the response datapublic void setDataFile(java.io.File dataFile)
dataFile - the File that holds response datapublic java.lang.String readDataFile()