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

commonMain.app.bsky.embed.recordWithMedia.kt Maven / Gradle / Ivy

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.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() },
  )

  @Serializable(with = ImagesSerializer::class)
  @JvmInline
  @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