Session

class Session(id: SessionId = SessionId(), allowedUsers: Set<Username> = emptySet(), participants: Set<Username> = emptySet()) : AggregateRoot<SessionId>

Constructors

Link copied to clipboard
constructor(id: SessionId = SessionId(), allowedUsers: Set<Username> = emptySet(), participants: Set<Username> = emptySet())

Properties

Link copied to clipboard
open val id: SessionId

Functions

Link copied to clipboard
Link copied to clipboard
fun addParticipant(participant: Username)
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun removeParticipant(participant: Username)
Link copied to clipboard