commonMain.app.bsky.feed.getFeedGenerator.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 app.bsky.feed
import kotlin.Any
import kotlin.Boolean
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.model.ReadOnlyList
/**
* @param feed AT-URI of the feed generator record.
*/
@Serializable
public data class GetFeedGeneratorQueryParams(
/**
* AT-URI of the feed generator record.
*/
public val feed: AtUri,
) {
public fun asList(): ReadOnlyList> = buildList {
add("feed" to feed)
}.toImmutableList()
}
/**
* @param isOnline Indicates whether the feed generator service has been online recently, or else
* seems to be inactive.
* @param isValid Indicates whether the feed generator service is compatible with the record
* declaration.
*/
@Serializable
public data class GetFeedGeneratorResponse(
public val view: GeneratorView,
/**
* Indicates whether the feed generator service has been online recently, or else seems to be
* inactive.
*/
public val isOnline: Boolean,
/**
* Indicates whether the feed generator service is compatible with the record declaration.
*/
public val isValid: Boolean,
)