getContainerById

abstract fun getContainerById(containerId: String): Container?

Retrieves a room container by its unique ID.

This method returns the details of a specific room container identified by the given containerId. If the container exists, the method will return a Container object containing relevant information about the container, including its associated room IDs. If the container does not exist, the method will return null.

Return

A Container object if found, or null if no container with the specified ID exists or if containerId is invalid.

Parameters

containerId

The unique identifier of the container to retrieve. If empty, the method will return null.