public class Message extends SidResource
Modifier and Type | Method and Description |
---|---|
static MessageCreator |
create(String serviceSid,
String channelSid,
String body)
Create a MessageCreator to execute create.
|
boolean |
equals(Object o) |
static MessageFetcher |
fetch(String serviceSid,
String channelSid,
String sid)
Create a MessageFetcher to execute fetch.
|
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()
Returns The The account_sid.
|
String |
getBody()
Returns The The body.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFrom()
Returns The The from.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getSid()
Returns The The sid.
|
String |
getTo()
Returns The The to.
|
URI |
getUrl()
Returns The The url.
|
Boolean |
getWasEdited()
Returns The The was_edited.
|
int |
hashCode() |
static MessageReader |
read(String serviceSid,
String channelSid)
Create a MessageReader to execute read.
|
String |
toString() |
public static MessageFetcher fetch(String serviceSid, String channelSid, String sid)
serviceSid
- The service_sidchannelSid
- The channel_sidsid
- The sidpublic static MessageCreator create(String serviceSid, String channelSid, String body)
serviceSid
- The service_sidchannelSid
- The channel_sidbody
- The bodypublic static MessageReader read(String serviceSid, String channelSid)
serviceSid
- The service_sidchannelSid
- The channel_sidpublic static Message fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Message fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
getSid
in class SidResource
public final String getAccountSid()
public final String getServiceSid()
public final String getTo()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final Boolean getWasEdited()
public final String getFrom()
public final String getBody()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.