public class Message extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Message.OrderType |
static class |
Message.WebhookEnabledType |
Modifier and Type | Method and Description |
---|---|
static MessageCreator |
creator(String pathServiceSid,
String pathChannelSid)
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 account_sid.
|
String |
getAttributes()
Returns The attributes.
|
String |
getBody()
Returns The body.
|
String |
getChannelSid()
Returns The channel_sid.
|
ZonedDateTime |
getDateCreated()
Returns The date_created.
|
ZonedDateTime |
getDateUpdated()
Returns The date_updated.
|
String |
getFrom()
Returns The from.
|
Integer |
getIndex()
Returns The index.
|
String |
getLastUpdatedBy()
Returns The last_updated_by.
|
Map<String,Object> |
getMedia()
Returns The media.
|
String |
getServiceSid()
Returns The service_sid.
|
String |
getSid()
Returns The sid.
|
String |
getTo()
Returns The to.
|
String |
getType()
Returns The type.
|
URI |
getUrl()
Returns The url.
|
Boolean |
getWasEdited()
Returns The was_edited.
|
int |
hashCode() |
static MessageReader |
reader(String pathServiceSid,
String pathChannelSid)
Create a MessageReader to execute read.
|
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)
pathServiceSid
- The service_sidpathChannelSid
- The channel_sidpublic 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 ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getLastUpdatedBy()
public final Boolean getWasEdited()
public final String getFrom()
public final String getBody()
public final Integer getIndex()
public final String getType()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.