Room List Utility
This class provides helper methods related to the list of rooms.
Methods
Parameters:
room
: The room object to be converted.
Converts the given room object to a
RoomInfo
object.Parameters:
rooms
: The list of rooms.room
: The updated room object.
Replaces a specific room in the list of rooms with its updated version and sends this updated information to all connections.
Parameters:
rooms
: The list of rooms.room
: The room object to be added.
Adds a new room to the list of rooms and sends this information to all connections.
Parameters:
rooms
: The list of rooms.room
: The room object to be removed.
Removes a room from the list of rooms and sends this information to all connections.
Last updated