migrated to v15

This commit is contained in:
Luke Hagar
2024-03-18 14:51:32 -07:00
parent be42385d2e
commit 56ce2a19cf
507 changed files with 25844 additions and 25 deletions

View File

@@ -0,0 +1,41 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct CreatePlaylistRequest: APIValue {
/// whether the playlist is smart or not
public let smart: Operations.Smart
/// name of the playlist
public let title: String
/// type of playlist to create
public let type: Operations.QueryParamType
/// the content URI for the playlist
public let uri: String
/// the play queue to copy to a playlist
@DecimalSerialized
public private(set) var playQueueID: Double?
/// Creates an object with the specified parameters
///
/// - Parameter smart: whether the playlist is smart or not
/// - Parameter title: name of the playlist
/// - Parameter type: type of playlist to create
/// - Parameter uri: the content URI for the playlist
/// - Parameter playQueueID: the play queue to copy to a playlist
///
public init(smart: Operations.Smart, title: String, type: Operations.QueryParamType, uri: String, playQueueID: Double? = nil) {
self.smart = smart
self.title = title
self.type = type
self.uri = uri
self._playQueueID = DecimalSerialized<Double?>(wrappedValue: playQueueID)
}
}
}
extension Operations.CreatePlaylistRequest {
var playQueueIDWrapper: DecimalSerialized<Double?> {
return _playQueueID
}
}