package com.base.pdfviewerscannerwhite.fcm

import com.base.pdfviewerscannerwhite.utils.AppPreferences

object PopupConstObject {

    const val POPUP_WHERE_TIMBER = "Timer"
    const val POPUP_WHERE_LOCK = "Lock"
    const val POPUP_WHERE_FCM = "fcm"
    const val POPUP_WHERE_MEDIA_CHANGE = "media_change"
    const val POPUP_WHERE_HOVER_HANDLE = "hover_handle"//悬停调用

    //推送总开关 0 关 1开
    val popup_status = "popup_status"

    //推送总数量现在
    val popup_count = "popup_count"//所有常规推送的当日推送次数限制，0 为不限制

    val popup_start = "popup_start"
    val popup_end = "popup_end"
    val popup_interval = "popup_interval"
    val popup_timer_interval = "popup_timber_interval"
    val popup_lock_interval = "popup_lock_interval"
    val popup_fcm_interval = "popup_fcm_interval"

    var topic_number = ""
        get() {
            return AppPreferences.getInstance().getString("topic_number", field)
        }
        set(value) {
            field = value
            AppPreferences.getInstance().put("topic_number", value, true)
        }

    //推送样式一配置
    val popup_style1_start = "popup_style1_start"
    val popup_style1_end = "popup_style1_end"
    val popup_style1_status = "popup_style1_status"
    val popup_style1_count = "popup_style1_count"
    val popup_style1_interval = "popup_style1_interval"

    //推送样式二配置
    val popup_style2_start = "popup_style2_start"
    val popup_style2_end = "popup_style2_end"
    val popup_style2_status = "popup_style2_status"
    val popup_style2_count = "popup_style2_count"
    val popup_style2_interval = "popup_style2_interval"

    //推送样式三配置
    val popup_style3_start = "popup_style3_start"
    val popup_style3_end = "popup_style3_end"
    val popup_style3_status = "popup_style3_status"
    val popup_style3_count = "popup_style3_count"
    val popup_style3_interval = "popup_style3_interval"


}