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

commonMain.tools.ozone.moderation.queryEventsToken.kt Maven / Gradle / Ivy

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 QueryEventsSubjectTypeSerializer : KSerializer by 
    stringEnumSerializer(QueryEventsSubjectType::safeValueOf)

@Serializable(with = QueryEventsSubjectTypeSerializer::class)
public sealed class QueryEventsSubjectType(
  override val `value`: String,
) : AtpEnum() {
  public data object Account : QueryEventsSubjectType("account")

  public data object Record : QueryEventsSubjectType("record")

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

  public companion object {
    public fun safeValueOf(`value`: String): QueryEventsSubjectType = when (value) {
      "account" -> Account
      "record" -> Record
      else -> Unknown(value)
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy