package com.base.scanqrclear.bean

import android.content.Context
import android.content.Intent
import android.widget.RemoteViews

class NotificationSendBean(
    val context: Context,
    val where: String = "",
    val canSend: () -> Boolean = { true },//是否可以发送
    var sendSuccess: (() -> Unit)? = null,//发送成功回调
    var valueMap: HashMap<String, Any?> = hashMapOf()//发送通知可能携带的参数
) {

    var actionId: String = ""
    var bigRemoteViews: RemoteViews? = null
    var smallRemoteViews: RemoteViews? = null
    var intent: Intent? = null
    var notificationId: Int = 1999

    companion object {

        const val POPUP_WHERE_TIMER = "Timer"
        const val POPUP_WHERE_LOCK = "Lock"
        const val POPUP_WHERE_FCM = "fcm"
        const val POPUP_WHERE_ALARM = "Alarm"
        const val POPUP_WHERE_BATTERY = "battery"
        const val POPUP_WHERE_PACKAGE = "package"
        const val POPUP_WHERE_WORK_MANAGER = "workManager"
        const val POPUP_WHERE_FILE_JOB = "FileJob"


        const val ACTION_ID_STAY_SCAN = "action_id_stay_scan"
        const val ACTION_ID_SCAN = "action_id_scan"
        const val ACTION_ID_WIFI = "action_id_wifi"
        const val ACTION_ID_TEXT = "action_id_text"
        const val ACTION_ID_EMAIL = "action_id_email"
        const val ACTION_ID_WEBSITE = "action_id_website"
        const val ACTION_ID_CLEAN_JUNK = "action_id_clean_junk"
        const val ACTION_ID_WEATHER = "action_id_weather"
        const val ACTION_ID_WEATHER_2 = "action_id_weather_2"
        const val ACTION_ID_APP_PROCESS = "action_id_app_process"
        const val ACTION_ID_WHATSAPP = "action_id_whatsapp"
        const val ACTION_ID_SCREEN_SHORT = "action_id_screen_short"
        const val ACTION_ID_SIMILAR = "action_id_similar"
        const val ACTION_ID_CONSTELLATION = "action_id_constellation"
        const val ACTION_ID_EARTHQUAKE = "action_id_earthquake"
    }
}