com.telapi.api.domain
Class SmsMessage

java.lang.Object
  extended by com.telapi.api.domain.BaseTelapiObject
      extended by com.telapi.api.domain.SmsMessage

public class SmsMessage
extends BaseTelapiObject

Text messages sent to and from TelAPI phone numbers are represented with the Sms resource.


Constructor Summary
SmsMessage()
           
 
Method Summary
 String getBody()
           
 Date getDateSent()
           
 SmsDirection getDirection()
           
 String getFrom()
           
 BigDecimal getPrice()
           
 String getStatus()
           
 String getTo()
           
 void setBody(String body)
           
 void setDateSent(Date dateSent)
           
 void setDirection(SmsDirection direction)
           
 void setFrom(String from)
           
 void setPrice(BigDecimal price)
           
 void setStatus(String status)
           
 void setTo(String to)
           
 
Methods inherited from class com.telapi.api.domain.BaseTelapiObject
getAccountSid, getApiVersion, getDateCreated, getDateUpdated, getSid, getUri, setAccountSid, setApiVersion, setDateCreated, setDateUpdated, setSid, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmsMessage

public SmsMessage()
Method Detail

getDateSent

public Date getDateSent()
Returns:
Date the SMS was sent.

setDateSent

public void setDateSent(Date dateSent)

getTo

public String getTo()
Returns:
The number that received the SMS message.

setTo

public void setTo(String to)

getFrom

public String getFrom()
Returns:
The number that sent the SMS message.

setFrom

public void setFrom(String from)

getBody

public String getBody()
Returns:
Text of the SMS message sent or received. May be up to 160 characters in length.

setBody

public void setBody(String body)

getStatus

public String getStatus()
Returns:
Status of the SMS: sent, sending, queued, or failed.

setStatus

public void setStatus(String status)

getDirection

public SmsDirection getDirection()
Returns:
Specifies the direction of the SMS: messages from REST API are "outbound-api", messages from incoming phone numbers to TelAPI are "incoming", messages from InboundXML initiated during an outbound call are "outbound-call", and messages from InboundXML initiated via an sms reply are "outbound-reply".

setDirection

public void setDirection(SmsDirection direction)

getPrice

public BigDecimal getPrice()
Returns:
Cost of the SMS.

setPrice

public void setPrice(BigDecimal price)


Copyright © 2012. All Rights Reserved.