tangocard.sdk.response.failure
Class InsufficientFundsResponse

java.lang.Object
  extended by tangocard.sdk.response.failure.FailureResponse
      extended by tangocard.sdk.response.failure.InsufficientFundsResponse
All Implemented Interfaces:
BaseResponse

public class InsufficientFundsResponse
extends FailureResponse

The Class InsufficientFundsResponse.


Constructor Summary
InsufficientFundsResponse(org.json.JSONObject responseJson)
          Instantiates a new insufficient funds response.
 
Method Summary
 int getAvailableBalance()
          Gets the available balance.
 java.lang.String getMessage()
          Gets the message.
 int getOrderCost()
          Gets the order cost.
 boolean parseResponseJSON(org.json.JSONObject responseJson)
          Parses the response JSON.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsufficientFundsResponse

public InsufficientFundsResponse(org.json.JSONObject responseJson)
                          throws TangoCardSdkException
Instantiates a new insufficient funds response.

Parameters:
responseJson - the response JSON
Throws:
TangoCardSdkException
Method Detail

getAvailableBalance

public int getAvailableBalance()
Gets the available balance.

Returns:
the available balance

getOrderCost

public int getOrderCost()
Gets the order cost.

Returns:
the order cost

parseResponseJSON

public boolean parseResponseJSON(org.json.JSONObject responseJson)
                          throws TangoCardSdkException
Description copied from interface: BaseResponse
Parses the response JSON.

Parameters:
responseJson - the response JSON
Returns:
true, if successful
Throws:
TangoCardSdkException

getMessage

public java.lang.String getMessage()
Description copied from class: FailureResponse
Gets the message.

Specified by:
getMessage in class FailureResponse
Returns:
the message