All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.app.bsky.video.JobStatus.kt Maven / Gradle / Ivy

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"
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy