public class UserConversation extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
UserConversation.NotificationLevel |
static class |
UserConversation.State |
Modifier and Type | Method and Description |
---|---|
static UserConversationDeleter |
deleter(String pathUserSid,
String pathConversationSid)
Create a UserConversationDeleter to execute delete.
|
boolean |
equals(Object o) |
static UserConversationFetcher |
fetcher(String pathUserSid,
String pathConversationSid)
Create a UserConversationFetcher to execute fetch.
|
static UserConversation |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a UserConversation object using the provided
ObjectMapper.
|
static UserConversation |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a UserConversation 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..
|
String |
getConversationSid()
Returns The unique ID of the Conversation for this User Conversation..
|
UserConversation.State |
getConversationState()
Returns The current state of this User Conversation.
|
String |
getCreatedBy()
Returns Creator of this conversation..
|
ZonedDateTime |
getDateCreated()
Returns The date that this conversation was created..
|
ZonedDateTime |
getDateUpdated()
Returns The date that this conversation was last updated..
|
String |
getFriendlyName()
Returns The human-readable name of this conversation..
|
Integer |
getLastReadMessageIndex()
Returns The index of the last read Message ..
|
Map<String,String> |
getLinks()
Returns Absolute URLs to access the participant and conversation of this user
conversation..
|
UserConversation.NotificationLevel |
getNotificationLevel()
Returns The Notification Level of this User Conversation..
|
String |
getParticipantSid()
Returns Participant Sid..
|
Map<String,Object> |
getTimers()
Returns Timer date values for this conversation..
|
String |
getUniqueName()
Returns An application-defined string that uniquely identifies the
Conversation resource..
|
Integer |
getUnreadMessagesCount()
Returns The number of unread Messages in the Conversation..
|
URI |
getUrl()
Returns The url.
|
String |
getUserSid()
Returns The unique ID for the User..
|
int |
hashCode() |
static UserConversationReader |
reader(String pathUserSid)
Create a UserConversationReader to execute read.
|
static UserConversationUpdater |
updater(String pathUserSid,
String pathConversationSid)
Create a UserConversationUpdater to execute update.
|
public static UserConversationUpdater updater(String pathUserSid, String pathConversationSid)
pathUserSid
- The unique SID identifier of the User.pathConversationSid
- The unique SID identifier of the Conversation.public static UserConversationDeleter deleter(String pathUserSid, String pathConversationSid)
pathUserSid
- The unique SID identifier of the User.pathConversationSid
- The unique SID identifier of the Conversation.public static UserConversationFetcher fetcher(String pathUserSid, String pathConversationSid)
pathUserSid
- The unique SID identifier of the User.pathConversationSid
- The unique SID identifier of the Conversation.public static UserConversationReader reader(String pathUserSid)
pathUserSid
- The unique SID identifier of the User.public static UserConversation fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static UserConversation 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 getConversationSid()
public final Integer getUnreadMessagesCount()
public final Integer getLastReadMessageIndex()
public final String getParticipantSid()
public final String getUserSid()
public final String getFriendlyName()
public final UserConversation.State getConversationState()
public final Map<String,Object> getTimers()
public final String getAttributes()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getCreatedBy()
public final UserConversation.NotificationLevel getNotificationLevel()
public final String getUniqueName()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.