package com.base.appzxhy.bean.push

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()//发送通知可能携带的参数比如 NotificationInfoBean
) {

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

    companion object {

        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 POPUP_WHERE_TIMER = "Timer"


        const val ACTION_ID_TEST = "action_id_test"
    }
}