public class Message extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Message.WebhookEnabledType |
Modifier and Type | Method and Description |
---|---|
static MessageCreator |
creator(String pathConversationSid)
Create a MessageCreator to execute create.
|
static MessageDeleter |
deleter(String pathConversationSid,
String pathSid)
Create a MessageDeleter to execute delete.
|
boolean |
equals(Object o) |
static MessageFetcher |
fetcher(String pathConversationSid,
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 unique ID of the Account responsible for this message..
|
String |
getAttributes()
Returns A string metadata field you can use to store any data you wish..
|
String |
getAuthor()
Returns The channel specific identifier of the message's author..
|
String |
getBody()
Returns The content of the message..
|
String |
getConversationSid()
Returns The unique ID of the Conversation for this message..
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created..
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated..
|
Map<String,Object> |
getDelivery()
Returns An object that contains the summary of delivery statuses for the
message to non-chat participants..
|
Integer |
getIndex()
Returns The index of the message within the Conversation..
|
Map<String,String> |
getLinks()
Returns Absolute URL to access the receipts of this message..
|
List<Map<String,Object>> |
getMedia()
Returns An array of objects that describe the Message's media if attached,
otherwise, null..
|
String |
getParticipantSid()
Returns The unique ID of messages's author participant..
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
URI |
getUrl()
Returns An absolute API URL for this message..
|
int |
hashCode() |
static MessageReader |
reader(String pathConversationSid)
Create a MessageReader to execute read.
|
static MessageUpdater |
updater(String pathConversationSid,
String pathSid)
Create a MessageUpdater to execute update.
|
public static MessageCreator creator(String pathConversationSid)
pathConversationSid
- The unique ID of the Conversation for this
message.public static MessageUpdater updater(String pathConversationSid, String pathSid)
pathConversationSid
- The unique ID of the Conversation for this
message.pathSid
- A 34 character string that uniquely identifies this resource.public static MessageDeleter deleter(String pathConversationSid, String pathSid)
pathConversationSid
- The unique ID of the Conversation for this
message.pathSid
- A 34 character string that uniquely identifies this resource.public static MessageFetcher fetcher(String pathConversationSid, String pathSid)
pathConversationSid
- The unique ID of the Conversation for this
message.pathSid
- A 34 character string that uniquely identifies this resource.public static MessageReader reader(String pathConversationSid)
pathConversationSid
- The unique ID of the Conversation for messages.public 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 getAccountSid()
public final String getConversationSid()
public final String getSid()
public final Integer getIndex()
public final String getAuthor()
public final String getBody()
public final List<Map<String,Object>> getMedia()
public final String getAttributes()
public final String getParticipantSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
public final Map<String,Object> getDelivery()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.