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 classParticipant.WebhookEnabledType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParticipantCreatorcreator(String pathConversationSid)static ParticipantDeleterdeleter(String pathConversationSid, String pathSid)booleanequals(Object o)static ParticipantFetcherfetcher(String pathConversationSid, String pathSid)static ParticipantfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Participant object using the provided ObjectMapper.static ParticipantfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Participant object using the provided ObjectMapper.StringgetAccountSid()StringgetAttributes()StringgetConversationSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetIdentity()IntegergetLastReadMessageIndex()StringgetLastReadTimestamp()Map<String,Object>getMessagingBinding()StringgetRoleSid()StringgetSid()URIgetUrl()inthashCode()static ParticipantReaderreader(String pathConversationSid)static ParticipantUpdaterupdater(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()
-
-