Class Conversation
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.service.Conversation
-
- All Implemented Interfaces:
Serializable
public class Conversation extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversation.Statestatic classConversation.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationCreatorcreator(String pathChatServiceSid)static ConversationDeleterdeleter(String pathChatServiceSid, String pathSid)booleanequals(Object o)static ConversationFetcherfetcher(String pathChatServiceSid, String pathSid)static ConversationfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Conversation object using the provided ObjectMapper.static ConversationfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Conversation object using the provided ObjectMapper.StringgetAccountSid()StringgetAttributes()Map<String,Object>getBindings()StringgetChatServiceSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetFriendlyName()Map<String,String>getLinks()StringgetMessagingServiceSid()StringgetSid()Conversation.StategetState()Map<String,Object>getTimers()StringgetUniqueName()URIgetUrl()inthashCode()static ConversationReaderreader(String pathChatServiceSid)static ConversationUpdaterupdater(String pathChatServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static ConversationCreator creator(String pathChatServiceSid)
-
fetcher
public static ConversationFetcher fetcher(String pathChatServiceSid, String pathSid)
-
deleter
public static ConversationDeleter deleter(String pathChatServiceSid, String pathSid)
-
reader
public static ConversationReader reader(String pathChatServiceSid)
-
updater
public static ConversationUpdater updater(String pathChatServiceSid, String pathSid)
-
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()
-
getChatServiceSid
public final String getChatServiceSid()
-
getMessagingServiceSid
public final String getMessagingServiceSid()
-
getSid
public final String getSid()
-
getFriendlyName
public final String getFriendlyName()
-
getUniqueName
public final String getUniqueName()
-
getAttributes
public final String getAttributes()
-
getState
public final Conversation.State getState()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
-