info.metadude.kotlin.library.engelsystem.adapters.ZoneOffsetJsonAdapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engelsystem-base Show documentation
Show all versions of engelsystem-base Show documentation
A Kotlin library containing a parser and models for the Engelsystem.
package info.metadude.kotlin.library.engelsystem.adapters
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.JsonReader
import com.squareup.moshi.JsonWriter
import org.threeten.bp.ZoneOffset
class ZoneOffsetJsonAdapter : JsonAdapter() {
private val delegate = ZoneOffsetAdapter()
override fun fromJson(reader: JsonReader): ZoneOffset? {
val jsonValue = reader.nextString()
return delegate.fromJson(jsonValue)
}
override fun toJson(writer: JsonWriter, value: ZoneOffset?) {
throw NotImplementedError()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy