com.hoiio.sdk.objects.voice
Class CallRate
java.lang.Object
com.hoiio.sdk.objects.HoiioResponse
com.hoiio.sdk.objects.voice.CallRate
public class CallRate
- extends HoiioResponse
Constructor Summary |
CallRate(net.sf.json.JSONObject output)
Constructs a new CallRate object by decoding the JSONObject as a response from the HTTP Request |
Method Summary |
Currency |
getCurrency()
Gets the currency used for this rate amount |
double |
getRate()
Gets the billable per-minute rate |
int |
getTalkTime()
Gets the estimated maximum talk time |
CallRate
public CallRate(net.sf.json.JSONObject output)
- Constructs a new
CallRate
object by decoding the JSONObject
as a response from the HTTP Request
- Parameters:
output
- The response of the HTTP Request
getCurrency
public Currency getCurrency()
- Gets the currency used for this rate amount
- Returns:
- Currency used for this rate amount.
getRate
public double getRate()
- Gets the billable per-minute rate
- Returns:
- Billable per-minute rate. Hoiio bill calls using per-minute block.
getTalkTime
public int getTalkTime()
- Gets the estimated maximum talk time
- Returns:
- Estimated maximum talk time in minutes.