Class SyncState
Implements
IBufferMessage
IMessage
Namespace: LiveKit.Proto
Assembly: Uniform.LiveKit.Protocol.dll
Syntax
public sealed class SyncState : IMessage<SyncState>, IEquatable<SyncState>, IDeepCloneable<SyncState>, IBufferMessage, IMessage
Constructors
SyncState()
Declaration
SyncState(SyncState)
Declaration
public SyncState(SyncState other)
Parameters
Fields
AnswerFieldNumber
Field number for the "answer" field.
Declaration
public const int AnswerFieldNumber = 1
Field Value
DataChannelsFieldNumber
Field number for the "data_channels" field.
Declaration
public const int DataChannelsFieldNumber = 4
Field Value
DataSubscriptionFieldNumber
Field number for the "data_subscription" field.
Declaration
public const int DataSubscriptionFieldNumber = 9
Field Value
DatachannelReceiveStatesFieldNumber
Field number for the "datachannel_receive_states" field.
Declaration
public const int DatachannelReceiveStatesFieldNumber = 7
Field Value
OfferFieldNumber
Field number for the "offer" field.
Declaration
public const int OfferFieldNumber = 5
Field Value
PublishDataTracksFieldNumber
Field number for the "publish_data_tracks" field.
Declaration
public const int PublishDataTracksFieldNumber = 8
Field Value
PublishTracksFieldNumber
Field number for the "publish_tracks" field.
Declaration
public const int PublishTracksFieldNumber = 3
Field Value
SubscriptionFieldNumber
Field number for the "subscription" field.
Declaration
public const int SubscriptionFieldNumber = 2
Field Value
TrackSidsDisabledFieldNumber
Field number for the "track_sids_disabled" field.
Declaration
public const int TrackSidsDisabledFieldNumber = 6
Field Value
Properties
Answer
last subscribe/publish answer before reconnecting
subscribe answer if using dual peer connection
publish answer if using single peer connection
Declaration
public SessionDescription Answer { get; set; }
Property Value
DataChannels
Declaration
public RepeatedField<DataChannelInfo> DataChannels { get; }
Property Value
DataSubscription
Declaration
public UpdateDataSubscription DataSubscription { get; set; }
Property Value
DatachannelReceiveStates
Declaration
public RepeatedField<DataChannelReceiveState> DatachannelReceiveStates { get; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
| Type |
Description |
| MessageDescriptor |
|
Offer
last received server side offer/sent client side offer before reconnecting
received server side offer if using dual peer connection
sent client side offer if using single peer connection
Declaration
public SessionDescription Offer { get; set; }
Property Value
Parser
Declaration
public static MessageParser<SyncState> Parser { get; }
Property Value
PublishDataTracks
Declaration
public RepeatedField<PublishDataTrackResponse> PublishDataTracks { get; }
Property Value
PublishTracks
Declaration
public RepeatedField<TrackPublishedResponse> PublishTracks { get; }
Property Value
Subscription
Declaration
public UpdateSubscription Subscription { get; set; }
Property Value
TrackSidsDisabled
Declaration
public RepeatedField<string> TrackSidsDisabled { get; }
Property Value
| Type |
Description |
| RepeatedField<string> |
|
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Declaration
public int CalculateSize()
Returns
| Type |
Description |
| int |
The number of bytes required to write this message
to a coded output stream.
|
Clone()
Creates a deep clone of this object.
Declaration
Returns
| Type |
Description |
| SyncState |
A deep clone of this object.
|
Equals(SyncState)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(SyncState other)
Parameters
| Type |
Name |
Description |
| SyncState |
other |
An object to compare with this object.
|
Returns
| Type |
Description |
| bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| object |
other |
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
Merges the data from the specified coded input stream with the current message.
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
| Type |
Name |
Description |
| CodedInputStream |
input |
|
MergeFrom(SyncState)
Merges the given message into this one.
Declaration
public void MergeFrom(SyncState other)
Parameters
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
| Type |
Name |
Description |
| CodedOutputStream |
output |
Coded output stream to write the data to. Must not be null.
|
Implements
Google.Protobuf.IMessage<T>
Google.Protobuf.IDeepCloneable<T>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage