mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 04:20:52 +00:00
74 lines
2.6 KiB
Swift
74 lines
2.6 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct GetMediaMetaDataPart {
|
|
/// Container format of the part.
|
|
public let container: String
|
|
/// Duration of the part in milliseconds.
|
|
public let duration: Int
|
|
/// File path for the part.
|
|
public let file: String
|
|
/// Unique part identifier.
|
|
public let id: Int
|
|
/// Key to access this part.
|
|
public let key: String
|
|
/// File size in bytes.
|
|
public let size: Int
|
|
/// An array of streams for this part.
|
|
public let stream: [Operations.GetMediaMetaDataStream]
|
|
/// Video profile for the part.
|
|
public let videoProfile: String
|
|
/// Indicates if the part is accessible.
|
|
public let accessible: Bool?
|
|
/// Indicates if the part exists.
|
|
public let exists: Bool?
|
|
public let indexes: String?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter container: Container format of the part.
|
|
/// - Parameter duration: Duration of the part in milliseconds.
|
|
/// - Parameter file: File path for the part.
|
|
/// - Parameter id: Unique part identifier.
|
|
/// - Parameter key: Key to access this part.
|
|
/// - Parameter size: File size in bytes.
|
|
/// - Parameter stream: An array of streams for this part.
|
|
/// - Parameter videoProfile: Video profile for the part.
|
|
/// - Parameter accessible: Indicates if the part is accessible.
|
|
/// - Parameter exists: Indicates if the part exists.
|
|
///
|
|
public init(container: String, duration: Int, file: String, id: Int, key: String, size: Int, stream: [Operations.GetMediaMetaDataStream], videoProfile: String, accessible: Bool? = nil, exists: Bool? = nil, indexes: String? = nil) {
|
|
self.container = container
|
|
self.duration = duration
|
|
self.file = file
|
|
self.id = id
|
|
self.key = key
|
|
self.size = size
|
|
self.stream = stream
|
|
self.videoProfile = videoProfile
|
|
self.accessible = accessible
|
|
self.exists = exists
|
|
self.indexes = indexes
|
|
}
|
|
}}
|
|
|
|
extension Operations.GetMediaMetaDataPart: Codable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case container
|
|
case duration
|
|
case file
|
|
case id
|
|
case key
|
|
case size
|
|
case stream = "Stream"
|
|
case videoProfile
|
|
case accessible
|
|
case exists
|
|
case indexes
|
|
}
|
|
}
|
|
|