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 classMessage.OrderTypestatic classMessage.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageCreatorcreator(String pathServiceSid, String pathChannelSid)static MessageDeleterdeleter(String pathServiceSid, String pathChannelSid, String pathSid)booleanequals(Object o)static MessageFetcherfetcher(String pathServiceSid, String pathChannelSid, 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()StringgetBody()StringgetChannelSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFrom()IntegergetIndex()StringgetLastUpdatedBy()Map<String,Object>getMedia()StringgetServiceSid()StringgetSid()StringgetTo()StringgetType()URIgetUrl()BooleangetWasEdited()inthashCode()static MessageReaderreader(String pathServiceSid, String pathChannelSid)static MessageUpdaterupdater(String pathServiceSid, String pathChannelSid, String pathSid)
-
-
-
Method Detail
-
creator
public static MessageCreator creator(String pathServiceSid, String pathChannelSid)
-
fetcher
public static MessageFetcher fetcher(String pathServiceSid, String pathChannelSid, String pathSid)
-
deleter
public static MessageDeleter deleter(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()
-
-