com.hoiio.sdk.objects.number
Class Rate

java.lang.Object
  extended by com.hoiio.sdk.objects.number.Rate

public class Rate
extends Object


Constructor Summary
Rate(net.sf.json.JSONObject output)
          Constructs a new Rate object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 int getDuration()
          Gets the subscription period
 double getRate()
          Gets the one-time billable amount for this subscription period
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rate

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

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

getDuration

public int getDuration()
Gets the subscription period

Returns:
The subscription period in months.

getRate

public double getRate()
Gets the one-time billable amount for this subscription period

Returns:
One-time billable amount for this subscription period.