net.rimlib.blackberry.api.paymentsdk
Class SimpleStringResult

java.lang.Object
  extended by net.rimlib.blackberry.api.paymentsdk.SimpleStringResult
All Implemented Interfaces:
Result, ResultCodes

public class SimpleStringResult
extends java.lang.Object
implements Result


Field Summary
 
Fields inherited from interface net.rimlib.blackberry.api.paymentsdk.Result
RETURN_CODE, STATUS_MESSAGE
 
Fields inherited from interface net.rimlib.blackberry.api.paymentsdk.ResultCodes
REASON_APP_WORLD_NOT_CORRECT_VERSION, REASON_ARGUMENTS_ERROR, REASON_CANCELED, REASON_GOOD_NOT_FOUND, REASON_ILLEGAL_APPLICATION, REASON_NONE, REASON_SERVER_ERROR, REASON_UNKNOWN
 
Constructor Summary
SimpleStringResult(java.util.Hashtable _simpleStringResultTableIn)
           
SimpleStringResult(int failureReason, java.lang.String statusMessage)
           
 
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
 

Constructor Detail

SimpleStringResult

public SimpleStringResult(java.util.Hashtable _simpleStringResultTableIn)

SimpleStringResult

public SimpleStringResult(int failureReason,
                          java.lang.String statusMessage)
Method Detail

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.