All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.app.bsky.feed.Interaction.kt Maven / Gradle / Ivy

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()}"
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy