-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40c7e6b
commit e734fe3
Showing
22 changed files
with
119 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...n-model/src/commonMain/kotlin-generated/org/jellyfin/sdk/model/api/TaskTriggerInfoType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// !! 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 | ||
|
||
/** | ||
* Enum TaskTriggerInfoType. | ||
*/ | ||
@Serializable | ||
public enum class TaskTriggerInfoType( | ||
public val serialName: String, | ||
) { | ||
@SerialName("DailyTrigger") | ||
DAILY_TRIGGER("DailyTrigger"), | ||
@SerialName("WeeklyTrigger") | ||
WEEKLY_TRIGGER("WeeklyTrigger"), | ||
@SerialName("IntervalTrigger") | ||
INTERVAL_TRIGGER("IntervalTrigger"), | ||
@SerialName("StartupTrigger") | ||
STARTUP_TRIGGER("StartupTrigger"), | ||
; | ||
|
||
/** | ||
* 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): TaskTriggerInfoType? = when (serialName) { | ||
"DailyTrigger" -> DAILY_TRIGGER | ||
"WeeklyTrigger" -> WEEKLY_TRIGGER | ||
"IntervalTrigger" -> INTERVAL_TRIGGER | ||
"StartupTrigger" -> STARTUP_TRIGGER | ||
else -> null | ||
} | ||
|
||
/** | ||
* Find the enum member by the serial name or throw. | ||
*/ | ||
public fun fromName(serialName: String): TaskTriggerInfoType = | ||
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" } | ||
} | ||
} |
Oops, something went wrong.