Class Participant
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.conversations.v1.conversation.Participant
-
- All Implemented Interfaces:
Serializable
public class Participant extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Participant.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParticipantCreator
creator(String pathConversationSid)
static ParticipantDeleter
deleter(String pathConversationSid, String pathSid)
boolean
equals(Object o)
static ParticipantFetcher
fetcher(String pathConversationSid, String pathSid)
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()
String
getAttributes()
String
getConversationSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getIdentity()
Integer
getLastReadMessageIndex()
String
getLastReadTimestamp()
Map<String,Object>
getMessagingBinding()
String
getRoleSid()
String
getSid()
URI
getUrl()
int
hashCode()
static ParticipantReader
reader(String pathConversationSid)
static ParticipantUpdater
updater(String pathConversationSid, String pathSid)
-
-
-
Method Detail
-
creator
public static ParticipantCreator creator(String pathConversationSid)
-
fetcher
public static ParticipantFetcher fetcher(String pathConversationSid, String pathSid)
-
deleter
public static ParticipantDeleter deleter(String pathConversationSid, String pathSid)
-
reader
public static ParticipantReader reader(String pathConversationSid)
-
updater
public static ParticipantUpdater updater(String pathConversationSid, String pathSid)
-
fromJson
public static Participant fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Participant object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Participant object represented by the provided JSON
-
fromJson
public static Participant fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Participant object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Participant object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getConversationSid
public final String getConversationSid()
-
getSid
public final String getSid()
-
getIdentity
public final String getIdentity()
-
getAttributes
public final String getAttributes()
-
getRoleSid
public final String getRoleSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUrl
public final URI getUrl()
-
getLastReadMessageIndex
public final Integer getLastReadMessageIndex()
-
getLastReadTimestamp
public final String getLastReadTimestamp()
-
-