commonMain.com.atproto.sync.getRecord.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 com.atproto.sync
import kotlin.Any
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlinx.collections.immutable.toImmutableList
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Cid
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.Nsid
import sh.christian.ozone.api.model.ReadOnlyList
/**
* @param did The DID of the repo.
* @param rkey Record Key
*/
@Serializable
public data class GetRecordQueryParams(
/**
* The DID of the repo.
*/
public val did: Did,
public val collection: Nsid,
/**
* Record Key
*/
public val rkey: String,
@Deprecated("DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit")
public val commit: Cid? = null,
) {
public fun asList(): ReadOnlyList> = buildList {
add("did" to did)
add("collection" to collection)
add("rkey" to rkey)
add("commit" to commit)
}.toImmutableList()
}