public class Participant extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Participant.WebhookEnabledType |
Modifier and Type | Method and Description |
---|---|
static ParticipantCreator |
creator(String pathChatServiceSid,
String pathConversationSid)
Create a ParticipantCreator to execute create.
|
static ParticipantDeleter |
deleter(String pathChatServiceSid,
String pathConversationSid,
String pathSid)
Create a ParticipantDeleter to execute delete.
|
boolean |
equals(Object o) |
static ParticipantFetcher |
fetcher(String pathChatServiceSid,
String pathConversationSid,
String pathSid)
Create a ParticipantFetcher to execute fetch.
|
static Participant |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Participant object using the provided
ObjectMapper.
|
static Participant |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Participant object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The unique ID of the Account responsible for this participant..
|
String |
getAttributes()
Returns An optional string metadata field you can use to store any data you
wish..
|
String |
getChatServiceSid()
Returns The SID of the Conversation Service that the resource is associated
with..
|
String |
getConversationSid()
Returns The unique ID of the Conversation for this participant..
|
ZonedDateTime |
getDateCreated()
Returns The date that this resource was created..
|
ZonedDateTime |
getDateUpdated()
Returns The date that this resource was last updated..
|
String |
getIdentity()
Returns A unique string identifier for the conversation participant as
Conversation User..
|
Integer |
getLastReadMessageIndex()
Returns Index of last “read” message in the Conversation for the
Participant..
|
String |
getLastReadTimestamp()
Returns Timestamp of last “read” message in the Conversation for the
Participant..
|
Map<String,Object> |
getMessagingBinding()
Returns Information about how this participant exchanges messages with the
conversation..
|
String |
getRoleSid()
Returns The SID of a conversation-level Role to assign to the participant.
|
String |
getSid()
Returns A 34 character string that uniquely identifies this resource..
|
URI |
getUrl()
Returns An absolute URL for this participant..
|
int |
hashCode() |
static ParticipantReader |
reader(String pathChatServiceSid,
String pathConversationSid)
Create a ParticipantReader to execute read.
|
static ParticipantUpdater |
updater(String pathChatServiceSid,
String pathConversationSid,
String pathSid)
Create a ParticipantUpdater to execute update.
|
public static ParticipantCreator creator(String pathChatServiceSid, String pathConversationSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathConversationSid
- The unique ID of the Conversation for this
participant.public static ParticipantUpdater updater(String pathChatServiceSid, String pathConversationSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathConversationSid
- The unique ID of the Conversation for this
participant.pathSid
- A 34 character string that uniquely identifies this resource.public static ParticipantDeleter deleter(String pathChatServiceSid, String pathConversationSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathConversationSid
- The unique ID of the Conversation for this
participant.pathSid
- A 34 character string that uniquely identifies this resource.public static ParticipantFetcher fetcher(String pathChatServiceSid, String pathConversationSid, String pathSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathConversationSid
- The unique ID of the Conversation for this
participant.pathSid
- A 34 character string that uniquely identifies this resource.public static ParticipantReader reader(String pathChatServiceSid, String pathConversationSid)
pathChatServiceSid
- The SID of the Conversation Service that the
resource is associated with.pathConversationSid
- The unique ID of the Conversation for
participants.public static Participant fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Participant 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 String getSid()
public final String getIdentity()
public final String getAttributes()
public final Map<String,Object> getMessagingBinding()
public final String getRoleSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
public final Integer getLastReadMessageIndex()
public final String getLastReadTimestamp()
Copyright © 2019 Twilio, Inc. All Rights Reserved.