Channel

@Serializable
data class Channel(val id: String, val name: String, val description: String? = null, val isPrivate: Boolean = false, val ownerId: UUID, val createdAt: Long = System.currentTimeMillis(), val bannedPlayers: Set<@Serializable(with = UUIDSerializer::class) UUID> = emptySet())(source)

Represents a communication channel within the LunaticChat application.

Constructors

Link copied to clipboard
constructor(id: String, name: String, description: String? = null, isPrivate: Boolean = false, ownerId: UUID, createdAt: Long = System.currentTimeMillis(), bannedPlayers: Set<@Serializable(with = UUIDSerializer::class) UUID> = emptySet())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val bannedPlayers: Set<@Serializable(with = UUIDSerializer::class) UUID>

Set of UUIDs of players who are banned from the channel.

Link copied to clipboard

Timestamp of when the channel was created.

Link copied to clipboard

Optional description of the channel.

Link copied to clipboard
val id: String

Unique identifier for the channel.

Link copied to clipboard

Indicates whether the channel is private or public.

Link copied to clipboard

Name of the channel.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val ownerId: UUID

UUID of the user who owns the channel.