mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
27 lines
670 B
Swift
27 lines
670 B
Swift
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A response model
|
|
public enum ApplyUpdatesResponse {
|
|
case empty
|
|
case object(Operations.ApplyUpdatesResponseBody)
|
|
|
|
var isEmpty: Bool {
|
|
if case .empty = self {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
|
|
public func object() throws -> Operations.ApplyUpdatesResponseBody {
|
|
guard case .object(let value) = self else {
|
|
throw PlexswiftError.missingResponseData
|
|
}
|
|
return value
|
|
}
|
|
}
|
|
}
|