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 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