public class Message extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Message.OrderType |
Modifier and Type | Method and Description |
---|---|
static MessageCreator |
creator(String pathServiceSid,
String pathChannelSid,
String body)
Create a MessageCreator to execute create.
|
static MessageDeleter |
deleter(String pathServiceSid,
String pathChannelSid,
String pathSid)
Create a MessageDeleter to execute delete.
|
boolean |
equals(Object o) |
static MessageFetcher |
fetcher(String pathServiceSid,
String pathChannelSid,
String pathSid)
Create a MessageFetcher to execute fetch.
|
static Message |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Message object using the provided
ObjectMapper.
|
static Message |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Message object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
String |
getAttributes()
Returns The The attributes.
|
String |
getBody()
Returns The The body.
|
String |
getChannelSid()
Returns The The channel_sid.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFrom()
Returns The The from.
|
Integer |
getIndex()
Returns The The index.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getSid()
Returns The The sid.
|
String |
getTo()
Returns The The to.
|
URI |
getUrl()
Returns The The url.
|
Boolean |
getWasEdited()
Returns The The was_edited.
|
int |
hashCode() |
static MessageReader |
reader(String pathServiceSid,
String pathChannelSid)
Create a MessageReader to execute read.
|
String |
toString() |
static MessageUpdater |
updater(String pathServiceSid,
String pathChannelSid,
String pathSid)
Create a MessageUpdater to execute update.
|
public static MessageFetcher fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
pathServiceSid
- The service_sidpathChannelSid
- The channel_sidpathSid
- The sidpublic static MessageCreator creator(String pathServiceSid, String pathChannelSid, String body)
pathServiceSid
- The service_sidpathChannelSid
- The channel_sidbody
- The bodypublic static MessageReader reader(String pathServiceSid, String pathChannelSid)
pathServiceSid
- The service_sidpathChannelSid
- The channel_sidpublic static MessageDeleter deleter(String pathServiceSid, String pathChannelSid, String pathSid)
pathServiceSid
- The service_sidpathChannelSid
- The channel_sidpathSid
- The sidpublic static MessageUpdater updater(String pathServiceSid, String pathChannelSid, String pathSid)
pathServiceSid
- The service_sidpathChannelSid
- The channel_sidpathSid
- The sidpublic static Message fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Message fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getAttributes()
public final String getServiceSid()
public final String getTo()
public final String getChannelSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final Boolean getWasEdited()
public final String getFrom()
public final String getBody()
public final Integer getIndex()
public final URI getUrl()
Copyright © 2016 Twilio, Inc. All Rights Reserved.