com.hoiio.sdk.objects.number
Class Subscribe
java.lang.Object
com.hoiio.sdk.objects.HoiioResponse
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 |
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
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).