com.hoiio.sdk.objects.number
Class Subscribe

java.lang.Object
  extended by com.hoiio.sdk.objects.HoiioResponse
      extended by com.hoiio.sdk.objects.number.Subscribe

public class Subscribe
extends HoiioResponse


Constructor Summary
Subscribe(net.sf.json.JSONObject output)
          Constructs a new Subscribe object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 Currency getCurrency()
          Gets the currency used for this transaction
 double getDebit()
          Gets the total amount billed for this transaction
 Date getExpiry()
          Gets the expiry date for this number
 
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

Subscribe

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

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

getCurrency

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

Returns:
Currency used for this transaction.

getDebit

public double getDebit()
Gets the total amount billed for this transaction

Returns:
Total amount billed for this transaction.

getExpiry

public Date getExpiry()
Gets the expiry date for this number

Returns:
The expiry date for this Hoiio Number in "YYYY-MM-DD" format (GMT+8).