Class ParticipantInfo
Inheritance
ParticipantInfo
Implements
IBufferMessage
IMessage
Namespace: LiveKit.Proto
Assembly: Uniform.LiveKit.Protocol.dll
Syntax
public sealed class ParticipantInfo : IMessage<ParticipantInfo>, IEquatable<ParticipantInfo>, IDeepCloneable<ParticipantInfo>, IBufferMessage, IMessage
Constructors
ParticipantInfo()
Declaration
ParticipantInfo(ParticipantInfo)
Declaration
public ParticipantInfo(ParticipantInfo other)
Parameters
Fields
AttributesFieldNumber
Field number for the "attributes" field.
Declaration
public const int AttributesFieldNumber = 15
Field Value
CapabilitiesFieldNumber
Field number for the "capabilities" field.
Declaration
public const int CapabilitiesFieldNumber = 21
Field Value
ClientProtocolFieldNumber
Field number for the "client_protocol" field.
Declaration
public const int ClientProtocolFieldNumber = 20
Field Value
DataTracksFieldNumber
Field number for the "data_tracks" field.
Declaration
public const int DataTracksFieldNumber = 19
Field Value
DisconnectReasonFieldNumber
Field number for the "disconnect_reason" field.
Declaration
public const int DisconnectReasonFieldNumber = 16
Field Value
IdentityFieldNumber
Field number for the "identity" field.
Declaration
public const int IdentityFieldNumber = 2
Field Value
IsPublisherFieldNumber
Field number for the "is_publisher" field.
Declaration
public const int IsPublisherFieldNumber = 13
Field Value
JoinedAtFieldNumber
Field number for the "joined_at" field.
Declaration
public const int JoinedAtFieldNumber = 6
Field Value
JoinedAtMsFieldNumber
Field number for the "joined_at_ms" field.
Declaration
public const int JoinedAtMsFieldNumber = 17
Field Value
KindDetailsFieldNumber
Field number for the "kind_details" field.
Declaration
public const int KindDetailsFieldNumber = 18
Field Value
KindFieldNumber
Field number for the "kind" field.
Declaration
public const int KindFieldNumber = 14
Field Value
Field number for the "metadata" field.
Declaration
public const int MetadataFieldNumber = 5
Field Value
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 9
Field Value
PermissionFieldNumber
Field number for the "permission" field.
Declaration
public const int PermissionFieldNumber = 11
Field Value
RegionFieldNumber
Field number for the "region" field.
Declaration
public const int RegionFieldNumber = 12
Field Value
SidFieldNumber
Field number for the "sid" field.
Declaration
public const int SidFieldNumber = 1
Field Value
StateFieldNumber
Field number for the "state" field.
Declaration
public const int StateFieldNumber = 3
Field Value
TracksFieldNumber
Field number for the "tracks" field.
Declaration
public const int TracksFieldNumber = 4
Field Value
VersionFieldNumber
Field number for the "version" field.
Declaration
public const int VersionFieldNumber = 10
Field Value
Properties
Attributes
Declaration
public MapField<string, string> Attributes { get; }
Property Value
Capabilities
capabilities the participant's client advertises, mirrored from ClientInfo.
Lets other participants perform client-side feature detection.
Declaration
public RepeatedField<ClientInfo.Types.Capability> Capabilities { get; }
Property Value
ClientProtocol
protocol version used for client feature compatibility
Declaration
public int ClientProtocol { get; set; }
Property Value
DataTracks
Declaration
public RepeatedField<DataTrackInfo> DataTracks { get; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
| Type |
Description |
| MessageDescriptor |
|
DisconnectReason
Declaration
public DisconnectReason DisconnectReason { get; set; }
Property Value
Identity
Declaration
public string Identity { get; set; }
Property Value
IsPublisher
indicates the participant has an active publisher connection
and can publish to the server
Declaration
public bool IsPublisher { get; set; }
Property Value
JoinedAt
timestamp when participant joined room, in seconds
Declaration
public long JoinedAt { get; set; }
Property Value
JoinedAtMs
timestamp when participant joined room, in milliseconds
Declaration
public long JoinedAtMs { get; set; }
Property Value
Kind
Declaration
public ParticipantInfo.Types.Kind Kind { get; set; }
Property Value
KindDetails
Declaration
public RepeatedField<ParticipantInfo.Types.KindDetail> KindDetails { get; }
Property Value
Declaration
public string Metadata { get; set; }
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
Parser
Declaration
public static MessageParser<ParticipantInfo> Parser { get; }
Property Value
Permission
Declaration
public ParticipantPermission Permission { get; set; }
Property Value
Region
Declaration
public string Region { get; set; }
Property Value
Sid
Declaration
public string Sid { get; set; }
Property Value
State
Declaration
public ParticipantInfo.Types.State State { get; set; }
Property Value
Tracks
Declaration
public RepeatedField<TrackInfo> Tracks { get; }
Property Value
Version
Declaration
public uint Version { get; set; }
Property Value
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
public ParticipantInfo Clone()
Returns
Equals(ParticipantInfo)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ParticipantInfo other)
Parameters
| Type |
Name |
Description |
| ParticipantInfo |
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(ParticipantInfo)
Merges the given message into this one.
Declaration
public void MergeFrom(ParticipantInfo 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