Beamable SDK
Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Core.Platform.SDK.Chat.Room Class Referenceabstract
Inheritance diagram for Core.Platform.SDK.Chat.Room:
Inheritance graph
[legend]

Public Member Functions

bool ContainsMessage (Message message)
 
abstract Promise Sync ()
 Synchronize the local representation of the room to the server state. More...
 
abstract Promise< MessageSendMessage (string message)
 Send a message to this room. More...
 
virtual Promise< RoomJoin (OnMessageReceivedDelegate callback=null)
 Join this room. After this call is successful, this player should start receiving messages for this room.

Parameters
callbackAssociated callback when a message is received for this room.
More...
 
virtual Promise< RoomLeave ()
 Leave this room. After this call is successful, this player no longer receive messages for this room. More...
 
virtual Promise< RoomForget ()
 Forget this room. This leaves the room and also removes it from saved rooms so it is no longer known More...
 
void MessageReceived (Message message)
 Adds a new message to this room. Will also invoke the _onMessageReceived callback if one is defined.

Parameters
messageThe message to add to this room.
More...
 

Public Attributes

readonly string Id
 
readonly string Name
 
readonly bool KeepSubscribed
 
readonly List< MessageMessages
 

Protected Member Functions

 Room (string id, string name, bool keepSubscribed, bool filterFromBlocked)
 
void MessageSent (Message message)
 Adds a new message to this room. This will not invoke the _onMessageReceived callback.

Parameters
messageThe message to add to this room.
More...
 

Properties

bool FilterMessagesFromBlockedPlayers [get, set]
 

Member Function Documentation

◆ Forget()

virtual Promise<Room> Core.Platform.SDK.Chat.Room.Forget ( )
inlinevirtual

Forget this room. This leaves the room and also removes it from saved rooms so it is no longer known

Reimplemented in Core.Platform.SDK.Chat.PubNubRoom.

◆ Join()

virtual Promise<Room> Core.Platform.SDK.Chat.Room.Join ( OnMessageReceivedDelegate  callback = null)
inlinevirtual

Join this room. After this call is successful, this player should start receiving messages for this room.

Parameters
callbackAssociated callback when a message is received for this room.

Reimplemented in Core.Platform.SDK.Chat.PubNubRoom.

◆ Leave()

virtual Promise<Room> Core.Platform.SDK.Chat.Room.Leave ( )
inlinevirtual

Leave this room. After this call is successful, this player no longer receive messages for this room.

Reimplemented in Core.Platform.SDK.Chat.PubNubRoom.

◆ MessageReceived()

void Core.Platform.SDK.Chat.Room.MessageReceived ( Message  message)
inline

Adds a new message to this room. Will also invoke the _onMessageReceived callback if one is defined.

Parameters
messageThe message to add to this room.

◆ MessageSent()

void Core.Platform.SDK.Chat.Room.MessageSent ( Message  message)
inlineprotected

Adds a new message to this room. This will not invoke the _onMessageReceived callback.

Parameters
messageThe message to add to this room.

◆ SendMessage()

abstract Promise<Message> Core.Platform.SDK.Chat.Room.SendMessage ( string  message)
pure virtual

Send a message to this room.

Parameters
messageContent of the message.

Implemented in Core.Platform.SDK.Chat.PubNubRoom.

◆ Sync()

abstract Promise Core.Platform.SDK.Chat.Room.Sync ( )
pure virtual

Synchronize the local representation of the room to the server state.

Implemented in Core.Platform.SDK.Chat.PubNubRoom.


The documentation for this class was generated from the following file: