commonMain.app.bsky.feed.Interaction.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.feed
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.AtUri
/**
* @param feedContext Context on a feed item that was originally supplied by the feed generator on
* getFeedSkeleton.
*/
@Serializable
public data class Interaction(
public val item: AtUri? = null,
public val event: String? = null,
/**
* Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.
*/
public val feedContext: String? = null,
) {
init {
require(feedContext == null || feedContext.count() <= 2_000) {
"feedContext.count() must be <= 2_000, but was ${feedContext?.count()}"
}
}
}