mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 12:47:44 +00:00
37 lines
1.3 KiB
Swift
37 lines
1.3 KiB
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
import Foundation
|
|
|
|
extension Operations {
|
|
/// A model object
|
|
public struct AddPlaylistContentsRequest: APIValue {
|
|
/// the ID of the playlist
|
|
@DecimalSerialized
|
|
public private(set) var playlistID: Double
|
|
/// the content URI for the playlist
|
|
public let uri: String
|
|
/// the play queue to add to a playlist
|
|
@DecimalSerialized
|
|
public private(set) var playQueueID: Double?
|
|
|
|
/// Creates an object with the specified parameters
|
|
///
|
|
/// - Parameter playlistID: the ID of the playlist
|
|
/// - Parameter uri: the content URI for the playlist
|
|
/// - Parameter playQueueID: the play queue to add to a playlist
|
|
///
|
|
public init(playlistID: Double, uri: String, playQueueID: Double? = nil) {
|
|
self._playlistID = DecimalSerialized<Double>(wrappedValue: playlistID)
|
|
self.uri = uri
|
|
self._playQueueID = DecimalSerialized<Double?>(wrappedValue: playQueueID)
|
|
}
|
|
}}
|
|
extension Operations.AddPlaylistContentsRequest {
|
|
var playlistIDWrapper: DecimalSerialized<Double> {
|
|
return _playlistID
|
|
}
|
|
var playQueueIDWrapper: DecimalSerialized<Double?> {
|
|
return _playQueueID
|
|
}
|
|
}
|