toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
multimedia-service
/
piperkt.services.multimedia.domain.server
/
Server
Server
class
Server
(
id
:
ServerId
=
ServerId()
,
members
:
Set
<
Username
>
=
emptySet()
,
channels
:
Set
<
Channel
>
=
emptySet()
)
:
AggregateRoot
<
ServerId
>
Members
Members & Extensions
Constructors
Server
Link copied to clipboard
constructor
(
id
:
ServerId
=
ServerId()
,
members
:
Set
<
Username
>
=
emptySet()
,
channels
:
Set
<
Channel
>
=
emptySet()
)
Properties
id
Link copied to clipboard
open
val
id
:
ServerId
Functions
add
Channel
Link copied to clipboard
fun
addChannel
(
channel
:
Channel
)
add
Member
Link copied to clipboard
fun
addMember
(
member
:
Username
)
channels
Link copied to clipboard
fun
channels
(
)
:
Set
<
Channel
>
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
get
Channel
By
Id
Link copied to clipboard
fun
getChannelById
(
channelId
:
ChannelId
)
:
Channel
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
members
Link copied to clipboard
fun
members
(
)
:
Set
<
Username
>
remove
Channel
Link copied to clipboard
fun
removeChannel
(
channel
:
Channel
)
remove
Channel
By
Id
Link copied to clipboard
fun
removeChannelById
(
channelId
:
ChannelId
)
remove
Member
Link copied to clipboard
fun
removeMember
(
member
:
Username
)
to
Entity
Link copied to clipboard
fun
Server
.
toEntity
(
)
:
ServerEntity