com.hoiio.sdk.objects.sms
Class Sms

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

public class Sms
extends HoiioResponse


Constructor Summary
Sms(net.sf.json.JSONObject output)
          Constructs a new Sms object by decoding the JSONObject as a response from the HTTP Request
 
Method Summary
 Currency getCurrency()
          Gets the currency used for this transaction
 Date getDate()
          Gets the Date/time of this transaction
 double getDebit()
          Gets the total amount billed for this transaction
 String getDest()
          Gets the recipient number of this transaction
 double getRate()
          Gets the charge per sms for this transaction
 SmsStatus getSmsStatus()
          Gets the status of the SMS delivery
 int getSplitCount()
          Gets the number of nultipart SMS that this message has been split into
 String getTag()
          Gets your reference ID submmited in the initial sms/send request
 String getTxnRef()
          Gets the unique reference ID for this transaction
 
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

Sms

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

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

getCurrency

public Currency getCurrency()
Gets the currency used for this transaction

Returns:
Currency used for this transaction

getDebit

public double getDebit()
Gets the total amount billed for this transaction

Returns:
Total amount billed for this transaction.

getDate

public Date getDate()
Gets the Date/time of this transaction

Returns:
Date/time (GMT+8) of the SMS in "YYYY-MM-DD HH:MM:SS" format.

getDest

public String getDest()
Gets the recipient number of this transaction

Returns:
The recipient number of the SMS. Phone numbers start with a "+" and country code (E.164 format), e.g. +6511111111.

getRate

public double getRate()
Gets the charge per sms for this transaction

Returns:
Per multipart SMS charges for this call transaction.

getSmsStatus

public SmsStatus getSmsStatus()
Gets the status of the SMS delivery

Returns:
Status of the SMS delivery.

getSplitCount

public int getSplitCount()
Gets the number of nultipart SMS that this message has been split into

Returns:
The number of multipart SMS that this message has been split into.

getTag

public String getTag()
Gets your reference ID submmited in the initial sms/send request

Returns:
Your own reference ID submitted in the initial sms/send request. This parameter will not be present if it wasn't included in the initial request.

getTxnRef

public String getTxnRef()
Gets the unique reference ID for this transaction

Returns:
The unique reference ID for this transaction.