commonMain.org.jellyfin.sdk.model.api.PersonKind.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jellyfin-model-jvm Show documentation
Show all versions of jellyfin-model-jvm Show documentation
Official Kotlin/Java SDK for Jellyfin. org.jellyfin.sdk:jellyfin-model-jvm
// !! WARNING
// !! DO NOT EDIT THIS FILE
//
// This file is generated by the openapi-generator module and is not meant for manual changes.
// Please read the README.md file in the openapi-generator module for additional information.
package org.jellyfin.sdk.model.api
import kotlin.String
import kotlin.requireNotNull
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* The person kind.
*/
@Serializable
public enum class PersonKind(
public val serialName: String,
) {
@SerialName("Unknown")
UNKNOWN("Unknown"),
@SerialName("Actor")
ACTOR("Actor"),
@SerialName("Director")
DIRECTOR("Director"),
@SerialName("Composer")
COMPOSER("Composer"),
@SerialName("Writer")
WRITER("Writer"),
@SerialName("GuestStar")
GUEST_STAR("GuestStar"),
@SerialName("Producer")
PRODUCER("Producer"),
@SerialName("Conductor")
CONDUCTOR("Conductor"),
@SerialName("Lyricist")
LYRICIST("Lyricist"),
@SerialName("Arranger")
ARRANGER("Arranger"),
@SerialName("Engineer")
ENGINEER("Engineer"),
@SerialName("Mixer")
MIXER("Mixer"),
@SerialName("Remixer")
REMIXER("Remixer"),
@SerialName("Creator")
CREATOR("Creator"),
@SerialName("Artist")
ARTIST("Artist"),
@SerialName("AlbumArtist")
ALBUM_ARTIST("AlbumArtist"),
@SerialName("Author")
AUTHOR("Author"),
@SerialName("Illustrator")
ILLUSTRATOR("Illustrator"),
@SerialName("Penciller")
PENCILLER("Penciller"),
@SerialName("Inker")
INKER("Inker"),
@SerialName("Colorist")
COLORIST("Colorist"),
@SerialName("Letterer")
LETTERER("Letterer"),
@SerialName("CoverArtist")
COVER_ARTIST("CoverArtist"),
@SerialName("Editor")
EDITOR("Editor"),
@SerialName("Translator")
TRANSLATOR("Translator"),
;
/**
* Get the serial name of the enum member.
*/
override fun toString(): String = serialName
public companion object {
/**
* Find the enum member by the serial name or return null.
*/
public fun fromNameOrNull(serialName: String): PersonKind? = when (serialName) {
"Unknown" -> UNKNOWN
"Actor" -> ACTOR
"Director" -> DIRECTOR
"Composer" -> COMPOSER
"Writer" -> WRITER
"GuestStar" -> GUEST_STAR
"Producer" -> PRODUCER
"Conductor" -> CONDUCTOR
"Lyricist" -> LYRICIST
"Arranger" -> ARRANGER
"Engineer" -> ENGINEER
"Mixer" -> MIXER
"Remixer" -> REMIXER
"Creator" -> CREATOR
"Artist" -> ARTIST
"AlbumArtist" -> ALBUM_ARTIST
"Author" -> AUTHOR
"Illustrator" -> ILLUSTRATOR
"Penciller" -> PENCILLER
"Inker" -> INKER
"Colorist" -> COLORIST
"Letterer" -> LETTERER
"CoverArtist" -> COVER_ARTIST
"Editor" -> EDITOR
"Translator" -> TRANSLATOR
else -> null
}
/**
* Find the enum member by the serial name or throw.
*/
public fun fromName(serialName: String): PersonKind =
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy