Class Message
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.ipmessaging.v2.service.channel.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 pathServiceSid, String pathChannelSid)
static MessageDeleter
deleter(String pathServiceSid, String pathChannelSid, String pathSid)
boolean
equals(Object o)
static MessageFetcher
fetcher(String pathServiceSid, String pathChannelSid, 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
getBody()
String
getChannelSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFrom()
Integer
getIndex()
String
getLastUpdatedBy()
Map<String,Object>
getMedia()
String
getServiceSid()
String
getSid()
String
getTo()
String
getType()
URI
getUrl()
Boolean
getWasEdited()
int
hashCode()
static MessageReader
reader(String pathServiceSid, String pathChannelSid)
static MessageUpdater
updater(String pathServiceSid, String pathChannelSid, String pathSid)
-
-
-
Method Detail
-
creator
public static MessageCreator creator(String pathServiceSid, String pathChannelSid)
-
deleter
public static MessageDeleter deleter(String pathServiceSid, String pathChannelSid, String pathSid)
-
fetcher
public static MessageFetcher fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
-
reader
public static MessageReader reader(String pathServiceSid, String pathChannelSid)
-
updater
public static MessageUpdater updater(String pathServiceSid, String pathChannelSid, 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
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getAttributes
public final String getAttributes()
-
getServiceSid
public final String getServiceSid()
-
getTo
public final String getTo()
-
getChannelSid
public final String getChannelSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getLastUpdatedBy
public final String getLastUpdatedBy()
-
getWasEdited
public final Boolean getWasEdited()
-
getFrom
public final String getFrom()
-
getBody
public final String getBody()
-
getIndex
public final Integer getIndex()
-
getType
public final String getType()
-
getUrl
public final URI getUrl()
-
-