All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.atproto.label.subscribeLabelsToken.kt Maven / Gradle / Ivy

The newest version!
package com.atproto.label

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 SubscribeLabelsNameSerializer : KSerializer by stringEnumSerializer(SubscribeLabelsName::safeValueOf)

@Serializable(with = SubscribeLabelsNameSerializer::class)
public sealed class SubscribeLabelsName(
  override val `value`: String,
) : AtpEnum() {
  public data object OutdatedCursor : SubscribeLabelsName("OutdatedCursor")

  public data class Unknown(
    public val rawValue: String,
  ) : SubscribeLabelsName(rawValue)

  public companion object {
    public fun safeValueOf(`value`: String): SubscribeLabelsName = when (value) {
      "OutdatedCursor" -> OutdatedCursor
      else -> Unknown(value)
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy