public class Participant extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Participant.Status |
Modifier and Type | Method and Description |
---|---|
static ParticipantCreator |
creator(String pathConferenceSid,
Endpoint from,
Endpoint to)
Create a ParticipantCreator to execute create.
|
static ParticipantCreator |
creator(String pathAccountSid,
String pathConferenceSid,
Endpoint from,
Endpoint to)
Create a ParticipantCreator to execute create.
|
static ParticipantDeleter |
deleter(String pathConferenceSid,
String pathCallSid)
Create a ParticipantDeleter to execute delete.
|
static ParticipantDeleter |
deleter(String pathAccountSid,
String pathConferenceSid,
String pathCallSid)
Create a ParticipantDeleter to execute delete.
|
boolean |
equals(Object o) |
static ParticipantFetcher |
fetcher(String pathConferenceSid,
String pathCallSid)
Create a ParticipantFetcher to execute fetch.
|
static ParticipantFetcher |
fetcher(String pathAccountSid,
String pathConferenceSid,
String pathCallSid)
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 SID of the Account that created the resource.
|
String |
getCallSid()
Returns The SID of the Call the resource is associated with.
|
String |
getCallSidToCoach()
Returns The SID of the participant who is being `coached`.
|
Boolean |
getCoaching()
Returns Indicates if the participant changed to coach.
|
String |
getConferenceSid()
Returns The SID of the conference the participant is in.
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
Boolean |
getEndConferenceOnExit()
Returns Whether the conference ends when the participant leaves.
|
Boolean |
getHold()
Returns Whether the participant is on hold.
|
String |
getLabel()
Returns The label of this participant.
|
Boolean |
getMuted()
Returns Whether the participant is muted.
|
Boolean |
getStartConferenceOnEnter()
Returns Whether the conference starts when the participant joins the
conference.
|
Participant.Status |
getStatus()
Returns The status of the participant's call in a session.
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
int |
hashCode() |
static ParticipantReader |
reader(String pathConferenceSid)
Create a ParticipantReader to execute read.
|
static ParticipantReader |
reader(String pathAccountSid,
String pathConferenceSid)
Create a ParticipantReader to execute read.
|
static ParticipantUpdater |
updater(String pathConferenceSid,
String pathCallSid)
Create a ParticipantUpdater to execute update.
|
static ParticipantUpdater |
updater(String pathAccountSid,
String pathConferenceSid,
String pathCallSid)
Create a ParticipantUpdater to execute update.
|
public static ParticipantFetcher fetcher(String pathAccountSid, String pathConferenceSid, String pathCallSid)
pathAccountSid
- The SID of the Account that created the resource to
fetchpathConferenceSid
- The SID of the conference with the participant to
fetchpathCallSid
- The Call SID or URL encoded label of the participant to
fetchpublic static ParticipantFetcher fetcher(String pathConferenceSid, String pathCallSid)
pathConferenceSid
- The SID of the conference with the participant to
fetchpathCallSid
- The Call SID or URL encoded label of the participant to
fetchpublic static ParticipantUpdater updater(String pathAccountSid, String pathConferenceSid, String pathCallSid)
pathAccountSid
- The SID of the Account that created the resources to
updatepathConferenceSid
- The SID of the conference with the participant to
updatepathCallSid
- The Call SID or URL encoded label of the participant to
updatepublic static ParticipantUpdater updater(String pathConferenceSid, String pathCallSid)
pathConferenceSid
- The SID of the conference with the participant to
updatepathCallSid
- The Call SID or URL encoded label of the participant to
updatepublic static ParticipantCreator creator(String pathAccountSid, String pathConferenceSid, Endpoint from, Endpoint to)
pathAccountSid
- The SID of the Account that will create the resourcepathConferenceSid
- The SID of the participant's conferencefrom
- The phone number, Client identifier, or username portion of SIP
address that made this call.to
- The phone number, SIP address or Client identifier that received
this call.public static ParticipantCreator creator(String pathConferenceSid, Endpoint from, Endpoint to)
pathConferenceSid
- The SID of the participant's conferencefrom
- The phone number, Client identifier, or username portion of SIP
address that made this call.to
- The phone number, SIP address or Client identifier that received
this call.public static ParticipantDeleter deleter(String pathAccountSid, String pathConferenceSid, String pathCallSid)
pathAccountSid
- The SID of the Account that created the resources to
deletepathConferenceSid
- The SID of the conference with the participants to
deletepathCallSid
- The Call SID or URL encoded label of the participant to
deletepublic static ParticipantDeleter deleter(String pathConferenceSid, String pathCallSid)
pathConferenceSid
- The SID of the conference with the participants to
deletepathCallSid
- The Call SID or URL encoded label of the participant to
deletepublic static ParticipantReader reader(String pathAccountSid, String pathConferenceSid)
pathAccountSid
- The SID of the Account that created the resources to
readpathConferenceSid
- The SID of the conference with the participants to
readpublic static ParticipantReader reader(String pathConferenceSid)
pathConferenceSid
- The SID of the conference with the participants to
readpublic 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 getCallSid()
public final String getLabel()
public final String getCallSidToCoach()
public final Boolean getCoaching()
public final String getConferenceSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final Boolean getEndConferenceOnExit()
public final Boolean getMuted()
public final Boolean getHold()
public final Boolean getStartConferenceOnEnter()
public final Participant.Status getStatus()
public final String getUri()
Copyright © 2019 Twilio, Inc. All Rights Reserved.