Table of Contents

Class VoiceClientCache

Namespace
NetCord.Gateway.Voice
Assembly
NetCord.dll
public sealed record VoiceClientCache : IVoiceClientCache, IDisposable, IEquatable<VoiceClientCache>
Inheritance
VoiceClientCache
Implements
Inherited Members

Constructors

VoiceClientCache()

public VoiceClientCache()

VoiceClientCache(JsonVoiceClientCache)

public VoiceClientCache(JsonVoiceClientCache jsonModel)

Parameters

jsonModel JsonVoiceClientCache

Properties

Ssrc

public uint Ssrc { get; }

Property Value

uint

Ssrcs

public IReadOnlyDictionary<ulong, uint> Ssrcs { get; }

Property Value

IReadOnlyDictionary<ulong, uint>

Users

public IReadOnlyDictionary<uint, ulong> Users { get; }

Property Value

IReadOnlyDictionary<uint, ulong>

Methods

CacheCurrentSsrc(uint)

public IVoiceClientCache CacheCurrentSsrc(uint ssrc)

Parameters

ssrc uint

Returns

IVoiceClientCache

CacheUser(uint, ulong)

public IVoiceClientCache CacheUser(uint ssrc, ulong userId)

Parameters

ssrc uint
userId ulong

Returns

IVoiceClientCache

Dispose()

public void Dispose()

Equals(VoiceClientCache?)

public bool Equals(VoiceClientCache? other)

Parameters

other VoiceClientCache

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

RemoveUser(uint, ulong)

public IVoiceClientCache RemoveUser(uint ssrc, ulong userId)

Parameters

ssrc uint
userId ulong

Returns

IVoiceClientCache

ToJsonModel()

public JsonVoiceClientCache ToJsonModel()

Returns

JsonVoiceClientCache

ToString()

public override string ToString()

Returns

string

<Clone>$()

public VoiceClientCache <Clone>$()

Returns

VoiceClientCache

Operators

operator ==(VoiceClientCache?, VoiceClientCache?)

public static bool operator ==(VoiceClientCache? left, VoiceClientCache? right)

Parameters

left VoiceClientCache
right VoiceClientCache

Returns

bool

operator !=(VoiceClientCache?, VoiceClientCache?)

public static bool operator !=(VoiceClientCache? left, VoiceClientCache? right)

Parameters

left VoiceClientCache
right VoiceClientCache

Returns

bool