Table of Contents

Class ParticipantInfo

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll
public sealed class ParticipantInfo : IMessage<ParticipantInfo>, IEquatable<ParticipantInfo>, IDeepCloneable<ParticipantInfo>, IBufferMessage, IMessage
Inheritance
ParticipantInfo
Implements
IMessage<ParticipantInfo>
IDeepCloneable<ParticipantInfo>
IBufferMessage
IMessage
Inherited Members

Constructors

ParticipantInfo()

public ParticipantInfo()

ParticipantInfo(ParticipantInfo)

public ParticipantInfo(ParticipantInfo other)

Parameters

other ParticipantInfo

Fields

AttributesFieldNumber

Field number for the "attributes" field.

public const int AttributesFieldNumber = 15

Field Value

int

ClientProtocolFieldNumber

Field number for the "client_protocol" field.

public const int ClientProtocolFieldNumber = 20

Field Value

int

DataTracksFieldNumber

Field number for the "data_tracks" field.

public const int DataTracksFieldNumber = 19

Field Value

int

DisconnectReasonFieldNumber

Field number for the "disconnect_reason" field.

public const int DisconnectReasonFieldNumber = 16

Field Value

int

IdentityFieldNumber

Field number for the "identity" field.

public const int IdentityFieldNumber = 2

Field Value

int

IsPublisherFieldNumber

Field number for the "is_publisher" field.

public const int IsPublisherFieldNumber = 13

Field Value

int

JoinedAtFieldNumber

Field number for the "joined_at" field.

public const int JoinedAtFieldNumber = 6

Field Value

int

JoinedAtMsFieldNumber

Field number for the "joined_at_ms" field.

public const int JoinedAtMsFieldNumber = 17

Field Value

int

KindDetailsFieldNumber

Field number for the "kind_details" field.

public const int KindDetailsFieldNumber = 18

Field Value

int

KindFieldNumber

Field number for the "kind" field.

public const int KindFieldNumber = 14

Field Value

int

MetadataFieldNumber

Field number for the "metadata" field.

public const int MetadataFieldNumber = 5

Field Value

int

NameFieldNumber

Field number for the "name" field.

public const int NameFieldNumber = 9

Field Value

int

PermissionFieldNumber

Field number for the "permission" field.

public const int PermissionFieldNumber = 11

Field Value

int

RegionFieldNumber

Field number for the "region" field.

public const int RegionFieldNumber = 12

Field Value

int

SidFieldNumber

Field number for the "sid" field.

public const int SidFieldNumber = 1

Field Value

int

StateFieldNumber

Field number for the "state" field.

public const int StateFieldNumber = 3

Field Value

int

TracksFieldNumber

Field number for the "tracks" field.

public const int TracksFieldNumber = 4

Field Value

int

VersionFieldNumber

Field number for the "version" field.

public const int VersionFieldNumber = 10

Field Value

int

Properties

Attributes

public MapField<string, string> Attributes { get; }

Property Value

MapField<string, string>

ClientProtocol

protocol version used for client feature compatibility

public int ClientProtocol { get; set; }

Property Value

int

DataTracks

public RepeatedField<DataTrackInfo> DataTracks { get; }

Property Value

RepeatedField<DataTrackInfo>

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

DisconnectReason

public DisconnectReason DisconnectReason { get; set; }

Property Value

DisconnectReason

Identity

public string Identity { get; set; }

Property Value

string

IsPublisher

indicates the participant has an active publisher connection and can publish to the server

public bool IsPublisher { get; set; }

Property Value

bool

JoinedAt

timestamp when participant joined room, in seconds

public long JoinedAt { get; set; }

Property Value

long

JoinedAtMs

timestamp when participant joined room, in milliseconds

public long JoinedAtMs { get; set; }

Property Value

long

Kind

public ParticipantInfo.Types.Kind Kind { get; set; }

Property Value

ParticipantInfo.Types.Kind

KindDetails

public RepeatedField<ParticipantInfo.Types.KindDetail> KindDetails { get; }

Property Value

RepeatedField<ParticipantInfo.Types.KindDetail>

Metadata

public string Metadata { get; set; }

Property Value

string

Name

public string Name { get; set; }

Property Value

string

Parser

public static MessageParser<ParticipantInfo> Parser { get; }

Property Value

MessageParser<ParticipantInfo>

Permission

public ParticipantPermission Permission { get; set; }

Property Value

ParticipantPermission

Region

public string Region { get; set; }

Property Value

string

Sid

public string Sid { get; set; }

Property Value

string

State

public ParticipantInfo.Types.State State { get; set; }

Property Value

ParticipantInfo.Types.State

Tracks

public RepeatedField<TrackInfo> Tracks { get; }

Property Value

RepeatedField<TrackInfo>

Version

public uint Version { get; set; }

Property Value

uint

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 ParticipantInfo Clone()

Returns

ParticipantInfo

A deep clone of this object.

Equals(ParticipantInfo)

public bool Equals(ParticipantInfo other)

Parameters

other ParticipantInfo

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(ParticipantInfo)

Merges the given message into this one.

public void MergeFrom(ParticipantInfo other)

Parameters

other ParticipantInfo

Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.