mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 04:20:52 +00:00
64 lines
2.2 KiB
Swift
64 lines
2.2 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetSearchAllLibrariesPart {
|
|
/// The container format of the media file.
|
|
///
|
|
public let container: String
|
|
public let file: String
|
|
public let id: Int
|
|
public let key: String
|
|
public let size: Int
|
|
public let audioProfile: String?
|
|
public let duration: Int?
|
|
public let has64bitOffsets: Bool?
|
|
public let hasThumbnail: Operations.GetSearchAllLibrariesHasThumbnail?
|
|
public let indexes: String?
|
|
public let optimizedForStreaming: Bool?
|
|
public let stream: [Operations.GetSearchAllLibrariesStream]?
|
|
public let videoProfile: String?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter container: The container format of the media file.
|
|
///
|
|
///
|
|
public init(container: String, file: String, id: Int, key: String, size: Int, audioProfile: String? = nil, duration: Int? = nil, has64bitOffsets: Bool? = nil, hasThumbnail: Operations.GetSearchAllLibrariesHasThumbnail? = nil, indexes: String? = nil, optimizedForStreaming: Bool? = nil, stream: [Operations.GetSearchAllLibrariesStream]? = nil, videoProfile: String? = nil) {
|
|
self.container = container
|
|
self.file = file
|
|
self.id = id
|
|
self.key = key
|
|
self.size = size
|
|
self.audioProfile = audioProfile
|
|
self.duration = duration
|
|
self.has64bitOffsets = has64bitOffsets
|
|
self.hasThumbnail = hasThumbnail
|
|
self.indexes = indexes
|
|
self.optimizedForStreaming = optimizedForStreaming
|
|
self.stream = stream
|
|
self.videoProfile = videoProfile
|
|
}
|
|
}}
|
|
|
|
extension Operations.GetSearchAllLibrariesPart: Codable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case container
|
|
case file
|
|
case id
|
|
case key
|
|
case size
|
|
case audioProfile
|
|
case duration
|
|
case has64bitOffsets
|
|
case hasThumbnail
|
|
case indexes
|
|
case optimizedForStreaming
|
|
case stream = "Stream"
|
|
case videoProfile
|
|
}
|
|
}
|
|
|