commonMain.app.bsky.embed.recordView.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.embed
import app.bsky.feed.GeneratorView
import app.bsky.graph.ListView
import app.bsky.graph.StarterPackViewBasic
import app.bsky.labeler.LabelerView
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 RecordViewRecordUnion {
public class ViewRecordSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.embed.record#viewRecord",
constructor = ::ViewRecord,
valueProvider = ViewRecord::value,
valueSerializerProvider = { RecordViewRecord.serializer() },
)
@Serializable(with = ViewRecordSerializer::class)
@JvmInline
@SerialName("app.bsky.embed.record#viewRecord")
public value class ViewRecord(
public val `value`: RecordViewRecord,
) : RecordViewRecordUnion
public class ViewNotFoundSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.embed.record#viewNotFound",
constructor = ::ViewNotFound,
valueProvider = ViewNotFound::value,
valueSerializerProvider = { RecordViewNotFound.serializer() },
)
@Serializable(with = ViewNotFoundSerializer::class)
@JvmInline
@SerialName("app.bsky.embed.record#viewNotFound")
public value class ViewNotFound(
public val `value`: RecordViewNotFound,
) : RecordViewRecordUnion
public class ViewBlockedSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.embed.record#viewBlocked",
constructor = ::ViewBlocked,
valueProvider = ViewBlocked::value,
valueSerializerProvider = { RecordViewBlocked.serializer() },
)
@Serializable(with = ViewBlockedSerializer::class)
@JvmInline
@SerialName("app.bsky.embed.record#viewBlocked")
public value class ViewBlocked(
public val `value`: RecordViewBlocked,
) : RecordViewRecordUnion
public class ViewDetachedSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.embed.record#viewDetached",
constructor = ::ViewDetached,
valueProvider = ViewDetached::value,
valueSerializerProvider = { RecordViewDetached.serializer() },
)
@Serializable(with = ViewDetachedSerializer::class)
@JvmInline
@SerialName("app.bsky.embed.record#viewDetached")
public value class ViewDetached(
public val `value`: RecordViewDetached,
) : RecordViewRecordUnion
public class FeedGeneratorViewSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.feed.defs#generatorView",
constructor = ::FeedGeneratorView,
valueProvider = FeedGeneratorView::value,
valueSerializerProvider = { GeneratorView.serializer() },
)
@Serializable(with = FeedGeneratorViewSerializer::class)
@JvmInline
@SerialName("app.bsky.feed.defs#generatorView")
public value class FeedGeneratorView(
public val `value`: GeneratorView,
) : RecordViewRecordUnion
public class GraphListViewSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.graph.defs#listView",
constructor = ::GraphListView,
valueProvider = GraphListView::value,
valueSerializerProvider = { ListView.serializer() },
)
@Serializable(with = GraphListViewSerializer::class)
@JvmInline
@SerialName("app.bsky.graph.defs#listView")
public value class GraphListView(
public val `value`: ListView,
) : RecordViewRecordUnion
public class LabelerLabelerViewSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.labeler.defs#labelerView",
constructor = ::LabelerLabelerView,
valueProvider = LabelerLabelerView::value,
valueSerializerProvider = { LabelerView.serializer() },
)
@Serializable(with = LabelerLabelerViewSerializer::class)
@JvmInline
@SerialName("app.bsky.labeler.defs#labelerView")
public value class LabelerLabelerView(
public val `value`: LabelerView,
) : RecordViewRecordUnion
public class GraphStarterPackViewBasicSerializer : KSerializer by valueClassSerializer(
serialName = "app.bsky.graph.defs#starterPackViewBasic",
constructor = ::GraphStarterPackViewBasic,
valueProvider = GraphStarterPackViewBasic::value,
valueSerializerProvider = { StarterPackViewBasic.serializer() },
)
@Serializable(with = GraphStarterPackViewBasicSerializer::class)
@JvmInline
@SerialName("app.bsky.graph.defs#starterPackViewBasic")
public value class GraphStarterPackViewBasic(
public val `value`: StarterPackViewBasic,
) : RecordViewRecordUnion
}
@Serializable
public data class RecordView(
public val record: RecordViewRecordUnion,
)