commonMain.spacetime.KronosDescriptor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foundation Show documentation
Show all versions of foundation Show documentation
"Foundations for applications"
The newest version!
package de.peekandpoke.ultra.foundation.spacetime
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
sealed class KronosDescriptor {
@Serializable
@SerialName("system-clock")
object SystemClock : KronosDescriptor()
@Serializable
@SerialName("advanced-by")
data class AdvancedBy(
val durationMs: Long,
val inner: KronosDescriptor,
) : KronosDescriptor()
}