package com.hh.arome.common;

import android.os.Build;

import com.hh.arome.BuildConfig;

import java.util.LinkedHashMap;

public class Constants {


    /**
     * 是否调试状态
     */
    public static final Boolean IS_DEBUG = BuildConfig.DEBUG;

    public static class Url {

        public static final String BASE_URL = BuildConfig.BASE_URL;

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

        // 具体接口
        public static final String API_CONFIG_QUERY = "api/v1/iot/device/config/sn/config";
        public static final String API_CONFIG_UPDATE = "api/v1/iot/device/config/sn/updateConfig";
        public static final String API_LOGCAT_ADD = "api/v1/app/log/add";

        public static final String USER_INFO_THREE_ELEMENTS = "https://ldb-permit.hz-hanghui.com:8088/hanghui/outapi/alipayApi/faceAuth/getAlipayUserInfo";

    }


    public static class Value {

        public static final String TOKEN = "edcf7741161b70c0813a05a5e4391fdb";


        public static final String CAMERA_BRAND = "Mario";

        // 设置进入
        public static final String PWD = "HH117521";


        // 业务app心跳
        public static final int TIME_HEARTBEAT = 15 * 1000;

    }


    public static class LogcatValue {

        // 日志各节点
        public static final String LOG_NODE_NET = "网络请求---";
        public static final String LOG_NODE_NET_CONFIG_QUERY = LOG_NODE_NET + "在线配置--获取--";
        public static final String LOG_NODE_NET_CONFIG_UPDATE = LOG_NODE_NET + "在线配置--更新--";
        public static final String LOG_NODE_NET_HEARTBEAT = LOG_NODE_NET + "设备心跳--";
        public static final String LOG_NODE_QR = "二维码---";
        public static final String LOG_NODE_FACE = "BPaaSApi--刷脸---";
        public static final String LOG_NODE_IDCARD = "身份证---";
        public static final String LOG_NODE_DEVICE = "设备信息---";
        public static final String LOG_NODE_APPLET = "小程序---";

        // 对应web的日志类型
        public static final String NET_LOGCAT = "Logcat";
        public static final String NET_ERROR = "Error";
        public static final String NET_CRASH = "Crash";


        public static final String NODE = "日志节点---";
        public static final String LINE = "日志位置---";
        public static final String WARP = " ---\n";
    }


    public static class Ampe {

        // 通道名字
        public static final String AMPE_NAME = "HHCommunication";

        // 二维码
        public static final String ACTION_QR = "getQRCode";
        // 身份证
        public static final String ACTION_IDCard = "getIDCardInfo";
        // 刷脸——初始化startBPass
        public static final String ACTION_INIT_FACE = "initFace";
        // 刷脸
        public static final String ACTION_FACE = "getFaceInfo";
        // 刷脸——江西
        public static final String ACTION_SCAN_FACE = "scanFace";
        // 设备信息
        public static final String ACTION_DEVICE = "getDeviceInfo";

        public static final String AMPE_EVENT = "";

        // 支付宝小程序硬件引擎——包名
        public static final String AMPE_ZFB_ENGINE_PKG = "com.alipay.arome.app";

        // 支付宝小程序硬件引擎——版本号
        public static final String AMPE_ZFB_ENGINE_VERSION_NAME = "10.3.34.679";

    }


    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 STOP_DOWNLOAD = "STOP_DOWNLOAD";

    }

    public static class DeviceModel {

        public static final String K8 = "K8";

        public static final String F10 = "F10";

        public static final String ZP = "HYIP1000-EI";

    }

}
