mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
55 lines
1.7 KiB
Swift
55 lines
1.7 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetLibraryItemsPart {
|
|
/// The container format of the media file.
|
|
///
|
|
public let container: String
|
|
public let duration: Int
|
|
public let file: String
|
|
public let id: Int
|
|
public let key: String
|
|
public let size: Int
|
|
public let videoProfile: String
|
|
public let audioProfile: String?
|
|
public let hasThumbnail: Operations.HasThumbnail?
|
|
public let indexes: String?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter container: The container format of the media file.
|
|
///
|
|
///
|
|
public init(container: String, duration: Int, file: String, id: Int, key: String, size: Int, videoProfile: String, audioProfile: String? = nil, hasThumbnail: Operations.HasThumbnail? = nil, indexes: String? = nil) {
|
|
self.container = container
|
|
self.duration = duration
|
|
self.file = file
|
|
self.id = id
|
|
self.key = key
|
|
self.size = size
|
|
self.videoProfile = videoProfile
|
|
self.audioProfile = audioProfile
|
|
self.hasThumbnail = hasThumbnail
|
|
self.indexes = indexes
|
|
}
|
|
}}
|
|
|
|
extension Operations.GetLibraryItemsPart: Codable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case container
|
|
case duration
|
|
case file
|
|
case id
|
|
case key
|
|
case size
|
|
case videoProfile
|
|
case audioProfile
|
|
case hasThumbnail
|
|
case indexes
|
|
}
|
|
}
|
|
|