Class ParticipantCreator
- java.lang.Object
-
- com.twilio.base.Creator<Participant>
-
- com.twilio.rest.conversations.v1.conversation.ParticipantCreator
-
public class ParticipantCreator extends Creator<Participant>
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
-
-
Constructor Summary
Constructors Constructor Description ParticipantCreator(String pathConversationSid)
Construct a new ParticipantCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Participant
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.ParticipantCreator
setDateCreated(org.joda.time.DateTime dateCreated)
The date that this resource was created..ParticipantCreator
setDateUpdated(org.joda.time.DateTime dateUpdated)
The date that this resource was last updated..ParticipantCreator
setIdentity(String identity)
A unique string identifier for the conversation participant as [Chat User](https://www.twilio.com/docs/api/chat/rest/users).ParticipantCreator
setMessagingBindingAddress(String messagingBindingAddress)
The address of the participant's device, e.g.ParticipantCreator
setMessagingBindingProxyAddress(String messagingBindingProxyAddress)
The address of the Twilio phone number (or WhatsApp number, or Messenger Page ID) that the participant is in contact with.-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Constructor Detail
-
ParticipantCreator
public ParticipantCreator(String pathConversationSid)
Construct a new ParticipantCreator.- Parameters:
pathConversationSid
- The unique id of the Conversation for this participant.
-
-
Method Detail
-
setIdentity
public ParticipantCreator setIdentity(String identity)
A unique string identifier for the conversation participant as [Chat User](https://www.twilio.com/docs/api/chat/rest/users). This parameter is non-null if (and only if) the participant is using the Programmable Chat SDK to communicate. Limited to 256 characters..- Parameters:
identity
- A unique string identifier for the conversation participant as Chat User.- Returns:
- this
-
setMessagingBindingAddress
public ParticipantCreator setMessagingBindingAddress(String messagingBindingAddress)
The address of the participant's device, e.g. a phone number or Messenger ID. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from a Chat endpoint (see the 'identity' field). Limited to 256 characters..- Parameters:
messagingBindingAddress
- The address of the participant's device.- Returns:
- this
-
setMessagingBindingProxyAddress
public ParticipantCreator setMessagingBindingProxyAddress(String messagingBindingProxyAddress)
The address of the Twilio phone number (or WhatsApp number, or Messenger Page ID) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from a Chat endpoint (see the 'identity' field). Limited to 256 characters..- Parameters:
messagingBindingProxyAddress
- The address of the Twilio phone number that the participant is in contact with.- Returns:
- this
-
setDateCreated
public ParticipantCreator setDateCreated(org.joda.time.DateTime dateCreated)
The date that this resource was created..- Parameters:
dateCreated
- The date that this resource was created.- Returns:
- this
-
setDateUpdated
public ParticipantCreator setDateUpdated(org.joda.time.DateTime dateUpdated)
The date that this resource was last updated..- Parameters:
dateUpdated
- The date that this resource was last updated.- Returns:
- this
-
create
public Participant create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.- Specified by:
create
in classCreator<Participant>
- Parameters:
client
- TwilioRestClient with which to make the request- Returns:
- Created Participant
-
-