Skip to main content
Version: 2.x

Interface IRoom

Assembly: cs.temp.dll.dll
Declaration
public interface IRoom

Properties

Id

Room id

Declaration
ulong Id { get; }

Parent

Default value

null
indicates root or not set

Declaration
object Parent { get; }

IsJoined

The current room is initialized

Declaration
bool IsJoined { get; }

CryptoCipher

Encryption handle container

Declaration
Crypto CryptoCipher { get; }

Methods

Join(string)

Join a room

Declaration
bool Join(string token)
Returns

System.Boolean: true on success

Parameters
TypeNameDescription
System.Stringtokenjwt to send

Join(string, OdinCipherHandle)

Join a room with encryption

Declaration
bool Join(string token, OdinCipherHandle cipher)
Returns

System.Boolean: true on success

Parameters
TypeNameDescription
System.Stringtokenjwt to send
Odin.OdinCipherHandleciphercrypto cipher

GetBaseRoom<T>()

Get the underlying OdinNative.Wrapper.Room.Room

Declaration
T GetBaseRoom<T>() where T : IRoom
Returns

<T>: native wrapper room##### Type Parameters

  • T

Events

OnRoomStatusChanged

Odin connection status

Declaration
event OnRoomStatusChangedDelegate OnRoomStatusChanged
Event Type

OdinNative.Wrapper.OnRoomStatusChangedDelegate

OnRoomJoined

Odin room joined

Declaration
event OnRoomJoinedDelegate OnRoomJoined
Event Type

OdinNative.Wrapper.OnRoomJoinedDelegate

OnRoomLeft

Odin room left

Declaration
event OnRoomLeftDelegate OnRoomLeft
Event Type

OdinNative.Wrapper.OnRoomLeftDelegate

OnPeerJoined

Odin peer joined

Declaration
event OnPeerJoinedDelegate OnPeerJoined
Event Type

OdinNative.Wrapper.OnPeerJoinedDelegate

OnPeerLeft

Odin peer left

Declaration
event OnPeerLeftDelegate OnPeerLeft
Event Type

OdinNative.Wrapper.OnPeerLeftDelegate

OnMediaStarted

Odin media started

Declaration
event OnMediaStartedDelegate OnMediaStarted
Event Type

OdinNative.Wrapper.OnMediaStartedDelegate

OnMediaStopped

Odin media stopped

Declaration
event OnMediaStoppedDelegate OnMediaStopped
Event Type

OdinNative.Wrapper.OnMediaStoppedDelegate

OnUserDataChanged

Odin peer changed userdata

Declaration
event OnUserDataChangedDelegate OnUserDataChanged
Event Type

OdinNative.Wrapper.OnUserDataChangedDelegate

OnMessageReceived

Odin room received message

Declaration
event OnMessageReceivedDelegate OnMessageReceived
Event Type

OdinNative.Wrapper.OnMessageReceivedDelegate