-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
a748118
commit e97fd23
Showing
9 changed files
with
105 additions
and
35 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
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""" } | ||
} | ||
} |
Git LFS file not shown