toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
servers-service
/
piperkt.services.servers.infrastructure.persistence.model
/
ServerEntity
Server
Entity
@
MappedEntity
data
class
ServerEntity
(
@
Id
val
id
:
String
,
val
name
:
String
,
val
description
:
String
,
val
owner
:
String
,
val
users
:
List
<
String
>
=
listOf(owner)
,
val
channels
:
List
<
ChannelEntity
>
=
emptyList()
)
Members
Constructors
Server
Entity
Link copied to clipboard
constructor
(
@
Id
id
:
String
,
name
:
String
,
description
:
String
,
owner
:
String
,
users
:
List
<
String
>
=
listOf(owner)
,
channels
:
List
<
ChannelEntity
>
=
emptyList()
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
channels
Link copied to clipboard
val
channels
:
List
<
ChannelEntity
>
description
Link copied to clipboard
val
description
:
String
id
Link copied to clipboard
val
id
:
String
name
Link copied to clipboard
val
name
:
String
owner
Link copied to clipboard
val
owner
:
String
users
Link copied to clipboard
val
users
:
List
<
String
>
Functions
to
Domain
Link copied to clipboard
fun
toDomain
(
)
:
Server