commonMain.app.bsky.embed.recordWithMedia.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.Suppress
import kotlin.jvm.JvmInline
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.model.JsonContent
import sh.christian.ozone.api.runtime.valueClassSerializer
@Serializable
public sealed interface RecordWithMediaMediaUnion {
public class ImagesSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.embed.images",
constructor = ::Images,
valueProvider = Images::value,
valueSerializerProvider = { app.bsky.embed.Images.serializer() },
)
@JvmInline
@Serializable(with = ImagesSerializer::class)
@SerialName("app.bsky.embed.images")
public value class Images(
public val `value`: app.bsky.embed.Images,
) : RecordWithMediaMediaUnion
public class VideoSerializer : KSerializer
© 2015 - 2024 Weber Informatics LLC | Privacy Policy