commonMain.tools.ozone.moderation.queryStatusesToken.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!
package tools.ozone.moderation
import kotlin.String
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.model.AtpEnum
import sh.christian.ozone.api.runtime.stringEnumSerializer
public class QueryStatusesSubjectTypeSerializer : KSerializer by stringEnumSerializer(QueryStatusesSubjectType::safeValueOf)
/**
* If specified, subjects of the given type (account or record) will be returned. When this is set
* to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is
* set, this will be ignored.
*/
@Serializable(with = QueryStatusesSubjectTypeSerializer::class)
public sealed class QueryStatusesSubjectType(
override val `value`: String,
) : AtpEnum() {
public data object Account : QueryStatusesSubjectType("account")
public data object Record : QueryStatusesSubjectType("record")
public data class Unknown(
public val rawValue: String,
) : QueryStatusesSubjectType(rawValue)
public companion object {
public fun safeValueOf(`value`: String): QueryStatusesSubjectType = when (value) {
"account" -> Account
"record" -> Record
else -> Unknown(value)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy