commonMain.app.bsky.actor.KnownFollowers.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.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()}"
}
}
}