Class WebhookEvent
public sealed class WebhookEvent : IMessage<WebhookEvent>, IEquatable<WebhookEvent>, IDeepCloneable<WebhookEvent>, IBufferMessage, IMessage
- Inheritance
-
WebhookEvent
- Implements
-
IMessage<WebhookEvent>IDeepCloneable<WebhookEvent>IBufferMessageIMessage
- Inherited Members
Constructors
WebhookEvent()
public WebhookEvent()
WebhookEvent(WebhookEvent)
public WebhookEvent(WebhookEvent other)
Parameters
otherWebhookEvent
Fields
CreatedAtFieldNumber
Field number for the "created_at" field.
public const int CreatedAtFieldNumber = 7
Field Value
EgressInfoFieldNumber
Field number for the "egress_info" field.
public const int EgressInfoFieldNumber = 9
Field Value
EventFieldNumber
Field number for the "event" field.
public const int EventFieldNumber = 1
Field Value
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 6
Field Value
IngressInfoFieldNumber
Field number for the "ingress_info" field.
public const int IngressInfoFieldNumber = 10
Field Value
NumDroppedFieldNumber
Field number for the "num_dropped" field.
public const int NumDroppedFieldNumber = 11
Field Value
ParticipantFieldNumber
Field number for the "participant" field.
public const int ParticipantFieldNumber = 3
Field Value
RoomFieldNumber
Field number for the "room" field.
public const int RoomFieldNumber = 2
Field Value
TrackFieldNumber
Field number for the "track" field.
public const int TrackFieldNumber = 8
Field Value
Properties
CreatedAt
timestamp in seconds
public long CreatedAt { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EgressInfo
set when event is egress_*
public EgressInfo EgressInfo { get; set; }
Property Value
Event
one of room_started, room_finished, participant_joined, participant_left, participant_connection_aborted, track_published, track_unpublished, egress_started, egress_updated, egress_ended, ingress_started, ingress_ended
public string Event { get; set; }
Property Value
Id
unique event uuid
public string Id { get; set; }
Property Value
IngressInfo
set when event is ingress_*
public IngressInfo IngressInfo { get; set; }
Property Value
NumDropped
[Obsolete]
public int NumDropped { get; set; }
Property Value
Parser
public static MessageParser<WebhookEvent> Parser { get; }
Property Value
- MessageParser<WebhookEvent>
Participant
set when event is participant_* or track_*
public ParticipantInfo Participant { get; set; }
Property Value
Room
public Room Room { get; set; }
Property Value
Track
set when event is track_*
public TrackInfo Track { 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 WebhookEvent Clone()
Returns
- WebhookEvent
A deep clone of this object.
Equals(WebhookEvent)
public bool Equals(WebhookEvent other)
Parameters
otherWebhookEvent
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(WebhookEvent)
Merges the given message into this one.
public void MergeFrom(WebhookEvent other)
Parameters
otherWebhookEvent
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.