com.hoiio.sdk.objects.sms
Class SmsRate

java.lang.Object
  extended by com.hoiio.sdk.objects.HoiioResponse
      extended by com.hoiio.sdk.objects.sms.SmsRate

public class SmsRate
extends HoiioResponse


Constructor Summary
SmsRate(net.sf.json.JSONObject output)
          Constructs a new SmsRate 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 charge per sms
 Integer getSplitCount()
          Gets the number of multipart SMS that this message will be split into (only returned if msg parameter is included in the request)
 Double getTotalCost()
          Gets the total amount that will be billed for sending this SMS (only returned if msg parameter is included in the request)
 Boolean isUnicode()
          Returns whether the message content is unicode or not (only returned if the msg parameter is included in the request)
 
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

SmsRate

public SmsRate(net.sf.json.JSONObject output)
Constructs a new SmsRate 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.

isUnicode

public Boolean isUnicode()
Returns whether the message content is unicode or not (only returned if the msg parameter is included in the request)

Returns:
Indicates if the message content is unicode.

getRate

public double getRate()
Gets the charge per sms

Returns:
Billable rate per multipart SMS rate.

getSplitCount

public Integer getSplitCount()
Gets the number of multipart SMS that this message will be split into (only returned if msg parameter is included in the request)

Returns:
The number of multipart SMS that this message will be split into.

getTotalCost

public Double getTotalCost()
Gets the total amount that will be billed for sending this SMS (only returned if msg parameter is included in the request)

Returns:
The total amount that will be billed for sending this SMS.