com.hoiio.sdk.objects.account
Class Balance

java.lang.Object
  extended by com.hoiio.sdk.objects.HoiioResponse
      extended by com.hoiio.sdk.objects.account.Balance

public class Balance
extends HoiioResponse


Constructor Summary
Balance(net.sf.json.JSONObject output)
          Constructs a new Balance object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 double getBalance()
          Gets the total balance of this account
 double getBonus()
          Gets the Bonus Points credit balance of this account
 Currency getCurrency()
          Gets the currency used for this account
 double getPoints()
          Gets the Hoiio Points credit balance of this account
 
Methods inherited from class com.hoiio.sdk.objects.HoiioResponse
getContent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Balance

public Balance(net.sf.json.JSONObject output)
Constructs a new Balance object by decoding the JSONObject as a response from the HTTP Request

Parameters:
output - The response of the HTTP Request
Method Detail

getBalance

public double getBalance()
Gets the total balance of this account

Returns:
The total available credit balance for this account. This is the sum of your Hoiio Points and Hoiio Bonus Points.

getBonus

public double getBonus()
Gets the Bonus Points credit balance of this account

Returns:
Your Hoiio Bonus Points credit balance. Hoiio Bonus Points cannot be transferred.

getCurrency

public Currency getCurrency()
Gets the currency used for this account

Returns:
Currency used for this account.

getPoints

public double getPoints()
Gets the Hoiio Points credit balance of this account

Returns:
Your Hoiio Points credit balance. Hoiio Points can be transferred to another account.