Class AcceptWhatsAppCallRequest
public sealed class AcceptWhatsAppCallRequest : IMessage<AcceptWhatsAppCallRequest>, IEquatable<AcceptWhatsAppCallRequest>, IDeepCloneable<AcceptWhatsAppCallRequest>, IBufferMessage, IMessage
- Inheritance
-
AcceptWhatsAppCallRequest
- Implements
-
IMessage<AcceptWhatsAppCallRequest>IDeepCloneable<AcceptWhatsAppCallRequest>IBufferMessageIMessage
- Inherited Members
Constructors
AcceptWhatsAppCallRequest()
public AcceptWhatsAppCallRequest()
AcceptWhatsAppCallRequest(AcceptWhatsAppCallRequest)
public AcceptWhatsAppCallRequest(AcceptWhatsAppCallRequest other)
Parameters
Fields
AgentsFieldNumber
Field number for the "agents" field.
public const int AgentsFieldNumber = 7
Field Value
DestinationCountryFieldNumber
Field number for the "destination_country" field.
public const int DestinationCountryFieldNumber = 12
Field Value
ParticipantAttributesFieldNumber
Field number for the "participant_attributes" field.
public const int ParticipantAttributesFieldNumber = 11
Field Value
ParticipantIdentityFieldNumber
Field number for the "participant_identity" field.
public const int ParticipantIdentityFieldNumber = 8
Field Value
ParticipantMetadataFieldNumber
Field number for the "participant_metadata" field.
public const int ParticipantMetadataFieldNumber = 10
Field Value
ParticipantNameFieldNumber
Field number for the "participant_name" field.
public const int ParticipantNameFieldNumber = 9
Field Value
RingingTimeoutFieldNumber
Field number for the "ringing_timeout" field.
public const int RingingTimeoutFieldNumber = 14
Field Value
RoomNameFieldNumber
Field number for the "room_name" field.
public const int RoomNameFieldNumber = 6
Field Value
SdpFieldNumber
Field number for the "sdp" field.
public const int SdpFieldNumber = 5
Field Value
WaitUntilAnsweredFieldNumber
Field number for the "wait_until_answered" field.
public const int WaitUntilAnsweredFieldNumber = 15
Field Value
WhatsappApiKeyFieldNumber
Field number for the "whatsapp_api_key" field.
public const int WhatsappApiKeyFieldNumber = 2
Field Value
WhatsappBizOpaqueCallbackDataFieldNumber
Field number for the "whatsapp_biz_opaque_callback_data" field.
public const int WhatsappBizOpaqueCallbackDataFieldNumber = 4
Field Value
WhatsappCallIdFieldNumber
Field number for the "whatsapp_call_id" field.
public const int WhatsappCallIdFieldNumber = 3
Field Value
WhatsappCloudApiVersionFieldNumber
Field number for the "whatsapp_cloud_api_version" field.
public const int WhatsappCloudApiVersionFieldNumber = 13
Field Value
WhatsappPhoneNumberIdFieldNumber
Field number for the "whatsapp_phone_number_id" field.
public const int WhatsappPhoneNumberIdFieldNumber = 1
Field Value
Properties
Agents
Optional - Agents to dispatch the call to
public RepeatedField<RoomAgentDispatch> Agents { get; }
Property Value
- RepeatedField<RoomAgentDispatch>
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DestinationCountry
Optional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
public string DestinationCountry { get; set; }
Property Value
Parser
public static MessageParser<AcceptWhatsAppCallRequest> Parser { get; }
Property Value
- MessageParser<AcceptWhatsAppCallRequest>
ParticipantAttributes
Optional - User-defined attributes. Will be attached to a created Participant in the room.
public MapField<string, string> ParticipantAttributes { get; }
Property Value
ParticipantIdentity
Optional - Identity of the participant in LiveKit room This is used for logging purposes, so it is advised to not put PII in this field.
public string ParticipantIdentity { get; set; }
Property Value
ParticipantMetadata
Optional - User-defined metadata. Will be attached to a created Participant in the room.
public string ParticipantMetadata { get; set; }
Property Value
ParticipantName
Optional - Name of the participant in LiveKit room
public string ParticipantName { get; set; }
Property Value
RingingTimeout
Max time for the callee to answer the call.
public Duration RingingTimeout { get; set; }
Property Value
- Duration
RoomName
Optional - What LiveKit room should this participant be connected too
public string RoomName { get; set; }
Property Value
Sdp
Required - The call accept webhook comes with SDP from Meta It is the for a user initiated call
public SessionDescription Sdp { get; set; }
Property Value
WaitUntilAnswered
Wait for the answer for the call before returning.
public bool WaitUntilAnswered { get; set; }
Property Value
WhatsappApiKey
Required - The API key of the business that is connecting the call
public string WhatsappApiKey { get; set; }
Property Value
WhatsappBizOpaqueCallbackData
Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
public string WhatsappBizOpaqueCallbackData { get; set; }
Property Value
WhatsappCallId
Required - Call ID sent by Meta
public string WhatsappCallId { get; set; }
Property Value
WhatsappCloudApiVersion
Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
public string WhatsappCloudApiVersion { get; set; }
Property Value
WhatsappPhoneNumberId
Required - The phone number id of the business that is conencting the call
public string WhatsappPhoneNumberId { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public AcceptWhatsAppCallRequest Clone()
Returns
- AcceptWhatsAppCallRequest
A deep clone of this object.
Equals(AcceptWhatsAppCallRequest)
public bool Equals(AcceptWhatsAppCallRequest other)
Parameters
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(AcceptWhatsAppCallRequest)
Merges the given message into this one.
public void MergeFrom(AcceptWhatsAppCallRequest other)
Parameters
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.