commonMain.com.atproto.repo.createRecordToken.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.repo
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 CreateRecordValidationStatusSerializer : KSerializer by stringEnumSerializer(CreateRecordValidationStatus::safeValueOf)
@Serializable(with = CreateRecordValidationStatusSerializer::class)
public sealed class CreateRecordValidationStatus(
override val `value`: String,
) : AtpEnum() {
public data object Valid : CreateRecordValidationStatus("valid")
public data object Unknown : CreateRecordValidationStatus("unknown")
public data class _Unknown(
public val rawValue: String,
) : CreateRecordValidationStatus(rawValue)
public companion object {
public fun safeValueOf(`value`: String): CreateRecordValidationStatus = when (value) {
"valid" -> Valid
"unknown" -> Unknown
else -> _Unknown(value)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy