> For the complete documentation index, see [llms.txt](https://reflective-roommanager.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reflective-roommanager.gitbook.io/docs/user-manual/network/room/utilities/room-list-utility.md).

# Room List Utility

This class provides helper methods related to the list of rooms.

### Methods

1. ```csharp
   public static RoomInfo ConvertToRoomList(Room room)
   ```

   * **Parameters:**
     * `room`: The room object to be converted.

   Converts the given room object to a `RoomInfo` object.
2. ```csharp
   public static void UpdateRoomToList(ref List<Room> rooms, Room room)
   ```

   * **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.
3. ```csharp
   public static void AddRoomToList(ref List<Room> rooms, Room room)
   ```

   * **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.
4. ```csharp
   public static void RemoveRoomToList(ref List<Room> rooms, Room room)
   ```

   * **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.
