//
//  LNReportEvent.swift
//  Gami
//
//  Created by OneeChan on 2026/3/24.
//

import Foundation


enum LNReportEventType: String {
    case none
    case deep_chat_hit
    case playmate_proactive_chat
}


enum LNReportEventScene: String {
    case none
    case playmate_deep_chat_report
    case playmate_proactive_chat_report
}


class LNReportEvent {
    var event: LNReportEventType = .none
    var uid: String = ""
    var scene: LNReportEventScene = .none
    var businessId: String = ""
    var extra: [String: Any] = [:]
    
    var toParam: [String: Any] {
        var params: [String: Any] = [:]
        if event != .none {
            params["eventType"] = event.rawValue
        }
        if !uid.isEmpty {
            params["targetUserNo"] = uid
        }
        if scene != .none {
            params["scene"] = scene.rawValue
        }
        if !businessId.isEmpty {
            params["businessId"] = businessId
        }
        if !extra.isEmpty {
            params["extra"] = extra
        }
        
        return params
    }
}
