package com.hh.hhomc.common;

import com.hh.hhomc.BuildConfig;

public class Constants {


    public static class Url {

        public static final String BASE_URL = BuildConfig.BASE_URL;

        // api
        public static final String API = BuildConfig.BASE_API_URL;


    }


    public static class SERVER_ACTION {

        // 设备状态上报
        public static final String REPORT_STATUS = "REPORT_STATUS";

        // 日志拉取
        public static final String FETCH_LOG = "FETCH_LOG";

        // ⽇志下载
        public static final String DOWNLOAD_LOG = "DOWNLOAD_LOG";

        // 应⽤关闭
        public static final String CLOSE_APP = "CLOSE_APP";

        // 设备重启
        public static final String REBOOT = "REBOOT";

        // apk安装升级
        public static final String INSTALL_UPGRADE = "INSTALL_UPGRADE";

        // apk升级进度
        public static final String UPGRADE_PROCESSING = "UPGRADE_PROCESSING";

        // apk取消安装升级
        public static final String CANCEL_UPGRADE = "CANCEL_UPGRADE";

        // 查询设备业务参数
        public static final String QUERY_DEVICE_BIZ_DATA = "QUERY_DEVICE_BIZ_DATA";


    }

    public static class VALUE {

        // 日志保存的天数时间
        public static final int TIME_LOG_DAY = 7;

        public static final long TIME_HEARTBEAT = 30 * 1000;
//        public static final long TIME_HEARTBEAT = 10 * 1000;

        String apk_url = "http://192.168.11.9:9086/middle-management/file/c47f16d8dae9e698412bd67a9835c797.apk";


        // 5分钟
        public static final long TIME_INSTALL_ALL = 5 * 60 * 1000;
//        public static final long TIME_INSTALL_ALL = 30 * 1000;

        public static final long TIME_INSTALL_INTERVAL = 5 * 1000;

        //
//        public static final long


    }


}
