commonMain.app.bsky.actor.InterestsPref.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.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.model.ReadOnlyList
/**
* @param tags A list of tags which describe the account owner's interests gathered during
* onboarding.
*/
@Serializable
public data class InterestsPref(
/**
* A list of tags which describe the account owner's interests gathered during onboarding.
*/
public val tags: ReadOnlyList,
) {
init {
require(tags.count() <= 100) {
"tags.count() must be <= 100, but was ${tags.count()}"
}
require(tags.count() <= 640) {
"tags.count() must be <= 640, but was ${tags.count()}"
}
}
}