mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
34 lines
1.1 KiB
Swift
34 lines
1.1 KiB
Swift
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct UpdatePlayProgressRequest: APIValue {
|
|
/// the media key
|
|
public let key: String
|
|
/// The playback state of the media item.
|
|
public let state: String
|
|
/// The time, in milliseconds, used to set the media playback progress.
|
|
@DecimalSerialized
|
|
public private(set) var time: Double
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter key: the media key
|
|
/// - Parameter state: The playback state of the media item.
|
|
/// - Parameter time: The time, in milliseconds, used to set the media playback progress.
|
|
///
|
|
public init(key: String, state: String, time: Double) {
|
|
self.key = key
|
|
self.state = state
|
|
self._time = DecimalSerialized<Double>(wrappedValue: time)
|
|
}
|
|
}
|
|
}
|
|
extension Operations.UpdatePlayProgressRequest {
|
|
var timeWrapper: DecimalSerialized<Double> {
|
|
return _time
|
|
}
|
|
}
|