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