Package com.twilio.rest.conversations.v1
Class Conversation
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.Conversation
-
- All Implemented Interfaces:
Serializable
public class Conversation extends Resource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Conversation.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationCreator
creator()
Create a ConversationCreator to execute create.static ConversationDeleter
deleter(String pathSid)
Create a ConversationDeleter to execute delete.boolean
equals(Object o)
static ConversationFetcher
fetcher(String pathSid)
Create a ConversationFetcher to execute fetch.static Conversation
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Conversation object using the provided ObjectMapper.static Conversation
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Conversation object using the provided ObjectMapper.String
getAccountSid()
Returns The The unique id of the Account responsible for this conversation..String
getChatServiceSid()
Returns The The unique id of the Chat Service this conversation belongs to..org.joda.time.DateTime
getDateCreated()
Returns The The date that this resource was created..org.joda.time.DateTime
getDateUpdated()
Returns The The date that this resource was last updated..String
getFriendlyName()
Returns The The human-readable name of this conversation..Map<String,String>
getLinks()
Returns The Absolute URLs to access the Participants of this Conversation..String
getMessagingServiceSid()
Returns The The unique id of the SMS Service this conversation belongs to..String
getSid()
Returns The A 34 character string that uniquely identifies this resource..URI
getUrl()
Returns The An absolute URL for this conversation..int
hashCode()
static ConversationReader
reader()
Create a ConversationReader to execute read.String
toString()
static ConversationUpdater
updater(String pathSid)
Create a ConversationUpdater to execute update.
-
-
-
Method Detail
-
creator
public static ConversationCreator creator()
Create a ConversationCreator to execute create.- Returns:
- ConversationCreator capable of executing the create
-
updater
public static ConversationUpdater updater(String pathSid)
Create a ConversationUpdater to execute update.- Parameters:
pathSid
- A 34 character string that uniquely identifies this resource.- Returns:
- ConversationUpdater capable of executing the update
-
deleter
public static ConversationDeleter deleter(String pathSid)
Create a ConversationDeleter to execute delete.- Parameters:
pathSid
- A 34 character string that uniquely identifies this resource.- Returns:
- ConversationDeleter capable of executing the delete
-
fetcher
public static ConversationFetcher fetcher(String pathSid)
Create a ConversationFetcher to execute fetch.- Parameters:
pathSid
- A 34 character string that uniquely identifies this resource.- Returns:
- ConversationFetcher capable of executing the fetch
-
reader
public static ConversationReader reader()
Create a ConversationReader to execute read.- Returns:
- ConversationReader capable of executing the read
-
fromJson
public static Conversation fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Conversation object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Conversation object represented by the provided JSON
-
fromJson
public static Conversation fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Conversation object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Conversation object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
Returns The The unique id of the Account responsible for this conversation..- Returns:
- The unique id of the Account responsible for this conversation.
-
getChatServiceSid
public final String getChatServiceSid()
Returns The The unique id of the Chat Service this conversation belongs to..- Returns:
- The unique id of the Chat Service this conversation belongs to.
-
getMessagingServiceSid
public final String getMessagingServiceSid()
Returns The The unique id of the SMS Service this conversation belongs to..- Returns:
- The unique id of the SMS Service this conversation belongs to.
-
getSid
public final String getSid()
Returns The A 34 character string that uniquely identifies this resource..- Returns:
- A 34 character string that uniquely identifies this resource.
-
getFriendlyName
public final String getFriendlyName()
Returns The The human-readable name of this conversation..- Returns:
- The human-readable name of this conversation.
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date that this resource was created..- Returns:
- The date that this resource was created.
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date that this resource was last updated..- Returns:
- The date that this resource was last updated.
-
getUrl
public final URI getUrl()
Returns The An absolute URL for this conversation..- Returns:
- An absolute URL for this conversation.
-
getLinks
public final Map<String,String> getLinks()
Returns The Absolute URLs to access the Participants of this Conversation..- Returns:
- Absolute URLs to access the Participants of this Conversation.
-
-