toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-common
/
dev.kord.common.serialization
/
DurationInHoursSerializer
Duration
In
Hours
Serializer
object
DurationInHoursSerializer
:
DurationAsLongSerializer
(
source
)
Serializer that encodes and decodes
Duration
s in
whole hours
.
Members
Properties
descriptor
Link copied to clipboard
override
val
descriptor
:
SerialDescriptor
unit
Link copied to clipboard
val
unit
:
DurationUnit
Functions
deserialize
Link copied to clipboard
override
fun
deserialize
(
decoder
:
Decoder
)
:
Duration
serialize
Link copied to clipboard
override
fun
serialize
(
encoder
:
Encoder
,
value
:
Duration
)