com.telapi.api.domain
Class SmsMessage
java.lang.Object
com.telapi.api.domain.BaseTelapiObject
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.
| 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 |
SmsMessage
public SmsMessage()
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.