//
//  PQBgmInfoModel.swift
//  PQSpeed
//
//  Created by ak on 2020/12/5.
//  Copyright © 2020 BytesFlow. All rights reserved.
//

import ObjectMapper
import RealmSwift
public class PQEditBgmInfoModel: PQEditBaseModel {
    @objc dynamic public var musicId: String = ""
    @objc dynamic public var originType: Int = 0
    // 选择的声音类型，1：原声 ，2：背景声
    @objc dynamic public var selectVoiceType: Int = 1
    // 卡点音乐节奏速度（1：快节奏，2：适中，3：慢节奏）
    @objc dynamic public var rhythmMusicSpeed: Int = 1

    required convenience init?(map _: Map) {
        self.init()
    }

    override public func mapping(map: Map) {
        musicId <- map["musicId"]
        originType <- map["originType"]
        selectVoiceType <- map["selectVoiceType"]
        rhythmMusicSpeed <- map["rhythmMusicSpeed"]
    }
}
