mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-09 20:57:45 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.194.0
This commit is contained in:
34
Sources/Plexswift/models/operations/GetOnDeckResponse.swift
Normal file
34
Sources/Plexswift/models/operations/GetOnDeckResponse.swift
Normal file
@@ -0,0 +1,34 @@
|
||||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Operations {
|
||||
/// A response model
|
||||
public enum GetOnDeckResponse {
|
||||
case empty
|
||||
case twoHundredApplicationJsonObject(Operations.GetOnDeckResponseBody)
|
||||
case fourHundredAndOneApplicationJsonObject(Operations.GetOnDeckLibraryResponseBody)
|
||||
|
||||
var isEmpty: Bool {
|
||||
if case .empty = self {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
public func twoHundredApplicationJsonObject() throws -> Operations.GetOnDeckResponseBody {
|
||||
guard case .twoHundredApplicationJsonObject(let value) = self else {
|
||||
throw PlexswiftError.missingResponseData
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
public func fourHundredAndOneApplicationJsonObject() throws -> Operations.GetOnDeckLibraryResponseBody {
|
||||
guard case .fourHundredAndOneApplicationJsonObject(let value) = self else {
|
||||
throw PlexswiftError.missingResponseData
|
||||
}
|
||||
return value
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user