commonMain.com.atproto.admin.getInviteCodesToken.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 com.atproto.admin
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 GetInviteCodesSortSerializer : KSerializer by stringEnumSerializer(GetInviteCodesSort::safeValueOf)
@Serializable(with = GetInviteCodesSortSerializer::class)
public sealed class GetInviteCodesSort(
override val `value`: String,
) : AtpEnum() {
public data object Recent : GetInviteCodesSort("recent")
public data object Usage : GetInviteCodesSort("usage")
public data class Unknown(
public val rawValue: String,
) : GetInviteCodesSort(rawValue)
public companion object {
public fun safeValueOf(`value`: String): GetInviteCodesSort = when (value) {
"recent" -> Recent
"usage" -> Usage
else -> Unknown(value)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy