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 Show documentation
Show all versions of bluesky 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 kotlin.collections.List
import kotlinx.serialization.Serializable
/**
* The subject's followers whom you also follow
*/
@Serializable
public data class KnownFollowers(
public val count: Long,
public val followers: List,
) {
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