commonMain.org.jellyfin.sdk.model.serializer.DateTimeSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jellyfin-model-jvm Show documentation
Show all versions of jellyfin-model-jvm Show documentation
Official Kotlin/Java SDK for Jellyfin. org.jellyfin.sdk:jellyfin-model-jvm
package org.jellyfin.sdk.model.serializer
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import org.jellyfin.sdk.model.DateTime
/**
* Serializer to read zoned date times as local date time and writing it back
*/
public expect class DateTimeSerializer : KSerializer {
override val descriptor: SerialDescriptor
override fun deserialize(decoder: Decoder): DateTime
override fun serialize(encoder: Encoder, value: DateTime): Unit
}