commonMain.tools.ozone.moderation.getRecord.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 tools.ozone.moderation
import kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlinx.collections.immutable.toImmutableList
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.AtUri
import sh.christian.ozone.api.Cid
import sh.christian.ozone.api.model.ReadOnlyList
@Serializable
public data class GetRecordQueryParams(
public val uri: AtUri,
public val cid: Cid? = null,
) {
public fun asList(): ReadOnlyList> = buildList {
add("uri" to uri)
add("cid" to cid)
}.toImmutableList()
}
public typealias GetRecordResponse = RecordViewDetail