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

commonMain.app.bsky.actor.KnownFollowers.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("DEPRECATION")

package app.bsky.actor

import kotlin.Long
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.model.ReadOnlyList

/**
 * The subject's followers whom you also follow
 */
@Serializable
public data class KnownFollowers(
  public val count: Long,
  public val followers: ReadOnlyList,
) {
  init {
    require(followers.count() >= 0) {
      "followers.count() must be >= 0, but was ${followers.count()}"
    }
    require(followers.count() <= 5) {
      "followers.count() must be <= 5, but was ${followers.count()}"
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy