package com.base.pdfreaderallpdfreader.fcm

import com.base.pdfreaderallpdfreader.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_WORK_MANAGER = "workmanager"
    const val POPUP_WHERE_MEDIA_CHANGE = "media_change"
    const val POPUP_WHERE_HOVER_HANDLE = "hover_handle"//悬停调用

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

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

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

    const val popup_hover_status = "popup_hover_status"
    const val popup_hover_count = "popup_hover_count"
    const val popup_hover_delay = "popup_hover_delay"

    const val lockS = "lockS"
    const val timerS = "timerS"
    const val timerDelay = "timerDelay"
    const val timerInterval="timerInterval"

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

}