toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-common
/
dev.kord.common.serialization
/
DurationAsLongSerializer
Duration
As
Long
Serializer
sealed
class
DurationAsLongSerializer
:
KSerializer
<
Duration
>
(
source
)
Serializer that encodes and decodes
Duration
s as a
Long
number of the specified
unit
.
Inheritors
DurationInNanosecondsSerializer
DurationInMicrosecondsSerializer
DurationInMillisecondsSerializer
DurationInSecondsSerializer
DurationInMinutesSerializer
DurationInHoursSerializer
DurationInDaysSerializer
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
)