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 class
Conversation.State
static class
Conversation.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationCreator
creator(String pathChatServiceSid)
static ConversationDeleter
deleter(String pathChatServiceSid, String pathSid)
boolean
equals(Object o)
static ConversationFetcher
fetcher(String pathChatServiceSid, String pathSid)
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()
String
getAttributes()
Map<String,Object>
getBindings()
String
getChatServiceSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getFriendlyName()
Map<String,String>
getLinks()
String
getMessagingServiceSid()
String
getSid()
Conversation.State
getState()
Map<String,Object>
getTimers()
String
getUniqueName()
URI
getUrl()
int
hashCode()
static ConversationReader
reader(String pathChatServiceSid)
static ConversationUpdater
updater(String pathChatServiceSid, String pathSid)
-
-
-
Method Detail
-
creator
public static ConversationCreator creator(String pathChatServiceSid)
-
deleter
public static ConversationDeleter deleter(String pathChatServiceSid, String pathSid)
-
fetcher
public static ConversationFetcher fetcher(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()
-
-