mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 20:57:46 +00:00
53 lines
2.0 KiB
Swift
53 lines
2.0 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetLibraryItemsLibrarySort {
|
|
/// The direction of the sort. Can be either `asc` or `desc`.
|
|
///
|
|
public let defaultDirection: Operations.GetLibraryItemsLibraryDefaultDirection
|
|
public let key: String
|
|
public let title: String
|
|
public let active: Bool?
|
|
/// The direction of the sort. Can be either `asc` or `desc`.
|
|
///
|
|
public let activeDirection: Operations.GetLibraryItemsLibraryActiveDirection?
|
|
public let `default`: String?
|
|
public let descKey: String?
|
|
public let firstCharacterKey: String?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter defaultDirection: The direction of the sort. Can be either `asc` or `desc`.
|
|
///
|
|
/// - Parameter activeDirection: The direction of the sort. Can be either `asc` or `desc`.
|
|
///
|
|
///
|
|
public init(defaultDirection: Operations.GetLibraryItemsLibraryDefaultDirection, key: String, title: String, active: Bool? = nil, activeDirection: Operations.GetLibraryItemsLibraryActiveDirection? = nil, `default`: String? = nil, descKey: String? = nil, firstCharacterKey: String? = nil) {
|
|
self.defaultDirection = defaultDirection
|
|
self.key = key
|
|
self.title = title
|
|
self.active = active
|
|
self.activeDirection = activeDirection
|
|
self.`default` = `default`
|
|
self.descKey = descKey
|
|
self.firstCharacterKey = firstCharacterKey
|
|
}
|
|
}}
|
|
|
|
extension Operations.GetLibraryItemsLibrarySort: Codable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case defaultDirection
|
|
case key
|
|
case title
|
|
case active
|
|
case activeDirection
|
|
case `default` = "default"
|
|
case descKey
|
|
case firstCharacterKey
|
|
}
|
|
}
|
|
|