commonMain.tools.ozone.set.Set.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 tools.ozone.`set`
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
@Serializable
public data class Set(
public val name: String,
public val description: String? = null,
) {
init {
require(name.count() >= 3) {
"name.count() must be >= 3, but was ${name.count()}"
}
require(name.count() <= 128) {
"name.count() must be <= 128, but was ${name.count()}"
}
require(description == null || description.count() <= 10_240) {
"description.count() must be <= 10_240, but was ${description?.count()}"
}
}
}