public class Conversation extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Conversation.State |
static class |
Conversation.WebhookEnabledType |
Modifier and Type | Method and Description |
---|---|
static ConversationCreator |
creator(String pathChatServiceSid)
Create a ConversationCreator to execute create.
|
static ConversationDeleter |
deleter(String pathChatServiceSid,
String pathSid)
Create a ConversationDeleter to execute delete.
|
boolean |
equals(Object o) |
static ConversationFetcher |
fetcher(String pathChatServiceSid,
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 unique ID of the Account responsible for this conversation..
|
String |
getAttributes()
Returns An optional string metadata field you can use to store any data you
wish..
|
String |
getChatServiceSid()
Returns The unique ID of the Conversation Service this conversation belongs
to..
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created..
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated..
|
String |
getFriendlyName()
Returns The human-readable name of this conversation..
|
Map<String,String> |
getLinks()
Returns Absolute URLs to access the participants, messages and webhooks of
this conversation..
|
String |
getMessagingServiceSid()
Returns The unique ID of the Messaging Service this conversation belongs to..
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
Conversation.State |
getState()
Returns Current state of this conversation..
|
Map<String,Object> |
getTimers()
Returns Timer date values for this conversation..
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the resource.
|
URI |
getUrl()
Returns An absolute URL for this conversation..
|
int |
hashCode() |
static ConversationReader |
reader(String pathChatServiceSid)
Create a ConversationReader to execute read.
|
static ConversationUpdater |
updater(String pathChatServiceSid,
String pathSid)
Create a ConversationUpdater to execute update.
|
public static ConversationCreator creator(String pathChatServiceSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.public static ConversationUpdater updater(String pathChatServiceSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathSid
- A 34 character string that uniquely identifies this resource.public static ConversationDeleter deleter(String pathChatServiceSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathSid
- A 34 character string that uniquely identifies this resource.public static ConversationFetcher fetcher(String pathChatServiceSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathSid
- A 34 character string that uniquely identifies this resource.public static ConversationReader reader(String pathChatServiceSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.public static Conversation fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Conversation fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getChatServiceSid()
public final String getMessagingServiceSid()
public final String getSid()
public final String getFriendlyName()
public final String getUniqueName()
public final String getAttributes()
public final Conversation.State getState()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final Map<String,Object> getTimers()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.