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 classMessage.OrderTypestatic classMessage.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageCreatorcreator(String pathChatServiceSid, String pathConversationSid)static MessageDeleterdeleter(String pathChatServiceSid, String pathConversationSid, String pathSid)booleanequals(Object o)static MessageFetcherfetcher(String pathChatServiceSid, String pathConversationSid, String pathSid)static MessagefromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Message object using the provided ObjectMapper.static MessagefromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Message object using the provided ObjectMapper.StringgetAccountSid()StringgetAttributes()StringgetAuthor()StringgetBody()StringgetChatServiceSid()StringgetConversationSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()Map<String,Object>getDelivery()IntegergetIndex()Map<String,String>getLinks()List<Map<String,Object>>getMedia()StringgetParticipantSid()StringgetSid()URIgetUrl()inthashCode()static MessageReaderreader(String pathChatServiceSid, String pathConversationSid)static MessageUpdaterupdater(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
-
-
Method Detail
-
creator
public static MessageCreator creator(String pathChatServiceSid, String pathConversationSid)
-
fetcher
public static MessageFetcher fetcher(String pathChatServiceSid, String pathConversationSid, String pathSid)
-
deleter
public static MessageDeleter deleter(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()
-
-