mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-07 12:47:45 +00:00
migrated to v15
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user