createContainer

abstract fun createContainer(name: String, description: String? = null, roomIds: List<String>? = null, listener: RainbowListener<Pair<Container, List<InvalidRoom>?>, RoomContainerRepository.ContainerError>? = null)

Creates a container with the specified parameters

The name of the container must be unique, otherwise the error code ContainersError.DUPLICATE_CONTAINER_NAME is returned in the ICreateContainerListener.onFailure(error) callback

Parameters

name

String container's name (should contains between 3 and 64 characters)

description

String? (optional) container's description (at most 255 characters)

roomIds

List? (optional) list of room id to add to the container

listener

RainbowListener?>, RoomContainerRepository.ContainerError> (optional) callback (onSuccess, onError)