toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
multimedia-service
/
piperkt.services.multimedia.domain.session
/
Session
Session
class
Session
(
id
:
SessionId
=
SessionId()
,
allowedUsers
:
Set
<
Username
>
=
emptySet()
,
participants
:
Set
<
Username
>
=
emptySet()
)
:
AggregateRoot
<
SessionId
>
Members
Members & Extensions
Constructors
Session
Link copied to clipboard
constructor
(
id
:
SessionId
=
SessionId()
,
allowedUsers
:
Set
<
Username
>
=
emptySet()
,
participants
:
Set
<
Username
>
=
emptySet()
)
Properties
id
Link copied to clipboard
open
val
id
:
SessionId
Functions
add
Allowed
User
Link copied to clipboard
fun
addAllowedUser
(
user
:
Username
)
add
Participant
Link copied to clipboard
fun
addParticipant
(
participant
:
Username
)
allowed
Users
Link copied to clipboard
fun
allowedUsers
(
)
:
Set
<
Username
>
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
participants
Link copied to clipboard
fun
participants
(
)
:
Set
<
Username
>
remove
Allowed
User
Link copied to clipboard
fun
removeAllowedUser
(
user
:
Username
)
remove
Participant
Link copied to clipboard
fun
removeParticipant
(
participant
:
Username
)
to
Entity
Link copied to clipboard
fun
Session
.
toEntity
(
)
:
SessionEntity