net.rimlib.blackberry.api.paymentsdk
Class SimpleStringResult
java.lang.Object
net.rimlib.blackberry.api.paymentsdk.SimpleStringResult
- All Implemented Interfaces:
- Result, ResultCodes
public class SimpleStringResult
- extends java.lang.Object
- implements Result
|
Method Summary |
int |
getFailureReason()
Retrieves a constant representing the reason this result is unsuccessful, or REASON_NONE
if this result is successful. |
protected java.util.Hashtable |
getResultTable()
|
java.lang.String |
getStatusMessage()
Retrieves a human-readable status message that an application can use relay this result to the end user. |
boolean |
isSuccessful()
Determines whether or not this is a successful result. |
protected void |
setResultsTable(java.util.Hashtable resultsTable)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleStringResult
public SimpleStringResult(java.util.Hashtable _simpleStringResultTableIn)
SimpleStringResult
public SimpleStringResult(int failureReason,
java.lang.String statusMessage)
getResultTable
protected java.util.Hashtable getResultTable()
setResultsTable
protected void setResultsTable(java.util.Hashtable resultsTable)
isSuccessful
public boolean isSuccessful()
- Description copied from interface:
Result
- Determines whether or not this is a successful result.
- Specified by:
isSuccessful in interface Result
- Returns:
- True if this result is successful; false otherwise.
getFailureReason
public int getFailureReason()
- Description copied from interface:
Result
- Retrieves a constant representing the reason this result is unsuccessful, or
REASON_NONE
if this result is successful.
- Specified by:
getFailureReason in interface Result
- Returns:
- One of the
REASON_* constants. If this result is successful, then REASON_NONE
is returned.
getStatusMessage
public java.lang.String getStatusMessage()
- Description copied from interface:
Result
- Retrieves a human-readable status message that an application can use relay this result to the end user.
- Specified by:
getStatusMessage in interface Result
- Returns:
- A human-readable status message.