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 Show documentation
Show all versions of bluesky 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 kotlin.collections.List
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Cid
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.Nsid
/**
* @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(): List> = buildList {
add("did" to did)
add("collection" to collection)
add("rkey" to rkey)
add("commit" to commit)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy