commonMain.app.bsky.embed.videoView.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!
@file:Suppress("DEPRECATION")
package app.bsky.embed
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Cid
import sh.christian.ozone.api.Uri
@Serializable
public data class VideoView(
public val cid: Cid,
public val playlist: Uri,
public val thumbnail: Uri? = null,
public val alt: String? = null,
public val aspectRatio: AspectRatio? = null,
) {
init {
require(alt == null || alt.count() <= 10_000) {
"alt.count() must be <= 10_000, but was ${alt?.count()}"
}
}
}