Class Message
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.service.conversation.Message
-
- All Implemented Interfaces:
Serializable
public class Message extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Message.OrderType
static class
Message.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageCreator
creator(String pathChatServiceSid, String pathConversationSid)
static MessageDeleter
deleter(String pathChatServiceSid, String pathConversationSid, String pathSid)
boolean
equals(Object o)
static MessageFetcher
fetcher(String pathChatServiceSid, String pathConversationSid, String pathSid)
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()
String
getAttributes()
String
getAuthor()
String
getBody()
String
getChatServiceSid()
String
getContentSid()
String
getConversationSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
Map<String,Object>
getDelivery()
Integer
getIndex()
Map<String,String>
getLinks()
List<Map<String,Object>>
getMedia()
String
getParticipantSid()
String
getSid()
URI
getUrl()
int
hashCode()
static MessageReader
reader(String pathChatServiceSid, String pathConversationSid)
static MessageUpdater
updater(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
-
-
Method Detail
-
creator
public static MessageCreator creator(String pathChatServiceSid, String pathConversationSid)
-
deleter
public static MessageDeleter deleter(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
fetcher
public static MessageFetcher fetcher(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
reader
public static MessageReader reader(String pathChatServiceSid, String pathConversationSid)
-
updater
public static MessageUpdater updater(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
fromJson
public static Message fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Message object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Message object represented by the provided JSON
-
fromJson
public static Message fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Message object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Message object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getChatServiceSid
public final String getChatServiceSid()
-
getConversationSid
public final String getConversationSid()
-
getSid
public final String getSid()
-
getIndex
public final Integer getIndex()
-
getAuthor
public final String getAuthor()
-
getBody
public final String getBody()
-
getAttributes
public final String getAttributes()
-
getParticipantSid
public final String getParticipantSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
getContentSid
public final String getContentSid()
-
-