com.hoiio.sdk.objects.voice
Class CallRate

java.lang.Object
  extended by com.hoiio.sdk.objects.HoiioResponse
      extended by 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
 
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

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
Method Detail

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.