// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation

public struct UpsertPlaybarStateRequest: Codable, Equatable {
    public var actionTime: String?
    public var contextId: String?
    public var contextType: String?
    public var deviceContext: String?
    public var deviceId: String?
    public var deviceType: String?
    public var playbarState: String?
    public var playlistContext: String?
    public var repeatState: RepeatState
    public var songIdsInQueue: [String]?
    public var songIndex: Int?
    public var songPlayTime: Double?
    public var volume: Double?

    public init(actionTime: String? = nil, contextId: String? = nil, contextType: String? = nil, deviceContext: String? = nil, deviceId: String? = nil, deviceType: String? = nil, playbarState: String? = nil, playlistContext: String? = nil, repeatState: RepeatState, songIdsInQueue: [String]? = nil, songIndex: Int? = nil, songPlayTime: Double? = nil, volume: Double? = nil) {
        self.actionTime = actionTime
        self.contextId = contextId
        self.contextType = contextType
        self.deviceContext = deviceContext
        self.deviceId = deviceId
        self.deviceType = deviceType
        self.playbarState = playbarState
        self.playlistContext = playlistContext
        self.repeatState = repeatState
        self.songIdsInQueue = songIdsInQueue
        self.songIndex = songIndex
        self.songPlayTime = songPlayTime
        self.volume = volume
    }
}
