commonMain.app.bsky.video.JobStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky-jvm Show documentation
Show all versions of bluesky-jvm Show documentation
Bluesky Social API bindings for Kotlin.
The newest version!
@file:Suppress("DEPRECATION")
package app.bsky.video
import kotlin.Long
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.model.Blob
/**
* @param state The state of the video processing job. All values not listed as a known value
* indicate that the job is in process.
* @param progress Progress within the current processing state.
*/
@Serializable
public data class JobStatus(
public val jobId: String,
public val did: Did,
/**
* The state of the video processing job. All values not listed as a known value indicate that the
* job is in process.
*/
public val state: State,
/**
* Progress within the current processing state.
*/
public val progress: Long? = null,
public val blob: Blob? = null,
public val error: String? = null,
public val message: String? = null,
) {
init {
require(progress == null || progress >= 0) {
"progress must be >= 0, but was $progress"
}
require(progress == null || progress <= 100) {
"progress must be <= 100, but was $progress"
}
}
}