Class Message
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.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.AddressRetention
static class
Message.ContentRetention
static class
Message.Direction
static class
Message.ScheduleType
static class
Message.Status
static class
Message.UpdateStatus
-
Method Summary
-
-
-
Method Detail
-
creator
public static MessageCreator creator(PhoneNumber to, PhoneNumber from, String body)
-
creator
public static MessageCreator creator(String pathAccountSid, PhoneNumber to, PhoneNumber from, String body)
-
creator
public static MessageCreator creator(PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
-
creator
public static MessageCreator creator(String pathAccountSid, PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
-
creator
public static MessageCreator creator(PhoneNumber to, String messagingServiceSid, String body)
-
creator
public static MessageCreator creator(String pathAccountSid, PhoneNumber to, String messagingServiceSid, String body)
-
creator
public static MessageCreator creator(PhoneNumber to, String messagingServiceSid, List<URI> mediaUrl)
-
creator
public static MessageCreator creator(String pathAccountSid, PhoneNumber to, String messagingServiceSid, List<URI> mediaUrl)
-
fetcher
public static MessageFetcher fetcher(String pathSid)
-
fetcher
public static MessageFetcher fetcher(String pathAccountSid, String pathSid)
-
deleter
public static MessageDeleter deleter(String pathSid)
-
deleter
public static MessageDeleter deleter(String pathAccountSid, String pathSid)
-
reader
public static MessageReader reader()
-
reader
public static MessageReader reader(String pathAccountSid)
-
updater
public static MessageUpdater updater(String pathSid)
-
updater
public static MessageUpdater updater(String pathAccountSid, 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
-
getBody
public final String getBody()
-
getNumSegments
public final String getNumSegments()
-
getDirection
public final Message.Direction getDirection()
-
getFrom
public final PhoneNumber getFrom()
-
getTo
public final String getTo()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getPrice
public final String getPrice()
-
getErrorMessage
public final String getErrorMessage()
-
getUri
public final String getUri()
-
getAccountSid
public final String getAccountSid()
-
getNumMedia
public final String getNumMedia()
-
getStatus
public final Message.Status getStatus()
-
getMessagingServiceSid
public final String getMessagingServiceSid()
-
getSid
public final String getSid()
-
getDateSent
public final ZonedDateTime getDateSent()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getErrorCode
public final Integer getErrorCode()
-
getPriceUnit
public final Currency getPriceUnit()
-
getApiVersion
public final String getApiVersion()
-
-