commonMain.app.bsky.video.Token.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky Show documentation
Show all versions of bluesky Show documentation
Bluesky Social API bindings for Kotlin.
The newest version!
package app.bsky.video
import kotlin.String
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.model.AtpEnum
import sh.christian.ozone.api.runtime.stringEnumSerializer
public class StateSerializer : KSerializer by stringEnumSerializer(State::safeValueOf)
/**
* The state of the video processing job. All values not listed as a known value indicate that the
* job is in process.
*/
@Serializable(with = StateSerializer::class)
public sealed class State(
override val `value`: String,
) : AtpEnum() {
public data object JOBSTATECOMPLETED : State("JOB_STATE_COMPLETED")
public data object JOBSTATEFAILED : State("JOB_STATE_FAILED")
public data class Unknown(
public val rawValue: String,
) : State(rawValue)
public companion object {
public fun safeValueOf(`value`: String): State = when (value) {
"JOB_STATE_COMPLETED" -> JOBSTATECOMPLETED
"JOB_STATE_FAILED" -> JOBSTATEFAILED
else -> Unknown(value)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy