package com.casic.dcms.utils;

import com.casic.dcms.R;

import java.util.Arrays;
import java.util.List;

public class LocaleConstant {
    public static final String[] CASE_PAGE_TITLES = {"待办案卷", "已办案卷"};
    public static final String[] DEPT_PAGE_TITLES = {"待办案卷", "待处理", "部门调整批示", "二级缓办待处理", "部门授权审核", "二级延期待处理", "已办案卷"};
    public static final String[] SPINNER_ITEMS = {"请选择", "已处理", "无需处理"};
    public static final String[] POPUP_LIST_ITEMS = {"一键消警", "报警分布", "窨井列表"};
    public static final String[] POPUP_OPTION_ITEMS = {"一键布防", "一键撤防"};

    public static final List<Integer> ANALYSIS_ICONS = Arrays.asList(
            R.mipmap.jcsj, R.mipmap.lytj, R.mipmap.gfwt,
            R.mipmap.czqk, R.mipmap.wgfx, R.mipmap.qsfx,
            R.mipmap.cffx);

    public static final List<String> ANALYSIS_ITEMS = Arrays.asList(
            "城市基础数据", "案卷来源统计", "高发案卷统计",
            "单位处置情况", "网格分析", "案卷趋势分析",
            "商铺处罚分析");

    //饼图预置颜色，前三种作为街道统计饼图颜色
    public static final List<Integer> PIE_COLORS = Arrays.asList(
            R.color.red_300, R.color.orange_300, R.color.yellow_300, R.color.green_300, R.color.cyan_300, R.color.blue_300, R.color.purple_300,
            R.color.red_400, R.color.orange_400, R.color.yellow_400, R.color.green_400, R.color.cyan_400, R.color.blue_400, R.color.purple_400,
            R.color.red_500, R.color.orange_500, R.color.yellow_500, R.color.green_500, R.color.cyan_500, R.color.blue_500, R.color.purple_500,
            R.color.red_600, R.color.orange_600, R.color.yellow_600, R.color.green_600, R.color.cyan_600, R.color.blue_600, R.color.purple_600,
            R.color.red_700, R.color.orange_700, R.color.yellow_700, R.color.green_700, R.color.cyan_700, R.color.blue_700, R.color.purple_700,
            R.color.red_800, R.color.orange_800, R.color.yellow_800, R.color.green_800, R.color.cyan_800, R.color.blue_800, R.color.purple_800,
            R.color.red_900, R.color.orange_900, R.color.yellow_900, R.color.green_900, R.color.cyan_900, R.color.blue_900, R.color.purple_900
    );

    public static final List<Integer> BACKGROUND_COLOR = Arrays.asList(
            R.color.color_A, R.color.color_B, R.color.color_C, R.color.color_D
    );
    public static final List<Integer> TEXT_COLOR = Arrays.asList(
            R.color.textColor_A, R.color.textColor_B, R.color.textColor_C, R.color.textColor_D
    );

    public static final String ACCOUNT = "account";
    public static final String PASSWORD = "password";
    public static final String USER_DETAIL_MODEL = "userDetailModel";
    public static final String LAST_LOGIN = "lastLoginTime";
    public static final String IP_KEY = "ip";
    public static final String TOILET_LAYER_ID = "toiletLayerId";
    public static final String APP_AUTHORITY = "com.casic.dcms.fileprovider";
    public static final String BRIDGE_LIST = "projectBridges";
    public static final String FOREGROUND_RUNNING_SERVICE_TITLE = "应用前台保活服务，请勿关闭此通知";

    public static final long HALF_YEAR = 180 * 60 * 60 * 24 * 1000L;
    public static final long FIVE_YEARS = 5L * 365 * 60 * 60 * 24 * 1000L;
    public static final long IMAGE_MINUS_SIZE = 100 * 1024;
    public static final long HTTP_TIMEOUT = 30L;
    public static final int PERMISSIONS_CODE = 999;
    public static final int PAGE_LIMIT = 10;
    public static final int BITRATE = 200 * 360 * 30;
    public static final int DEFAULT_WIDTH = 720;
    public static final int DEFAULT_HEIGHT = 1280;

    public static final int CASE_HANDLE = 0;
    public static final int CASE_VERIFY = 1;
    public static final int CASE_CHECK = 2;
    public static final int PUSH_REGISTER = 2022080101;
    public static final int UPDATE_NOTICE_FRAGMENT = 2022080102;
    public static final int MESSAGE_NUMBER = 2022080103;
    public static final int UPDATE_LOCATION = 2022080201;

    public static final double DEFAULT_LNG = 116.05695247650146;
    public static final double DEFAULT_LAT = 27.76725390642336;
    public static final double DELTA_LNG_10 = 0.00002536; // 10米范围经度值偏移量（大约）
    public static final double DELTA_LAT_10 = 0.00002256;// 10米范围纬度值偏移量（大约）
    public static final double DELTA_LNG_75 = 0.00075;
    public static final double DELTA_LAT_75 = 0.00075;

    /**
     * 西路社区：116.0497949886485,27.7523090448274
     * 永胜、中山社区：116.04801256908105,27.764489266672403
     * 城北社区：116.05083134025335,27.78274489130171
     * 一木社区：116.06179579161108,27.780238298884917
     * 新街社区：116.0569392645266,27.775902775818285
     * 南道社区：116.05398381594571,27.765387699087427
     * 胜利社区：116.05763011146338,27.758979599138858
     * 黄家社区：116.06998477480374,27.766637205647783
     * 中大社区：116.06510639190675,27.752823008396483
     * 中大、子正社区：116.08546817209574,27.758020310248185
     * 子正、高新区：116.11514568328859,27.774506608946538
     */
    public static final double[] XILU = {116.0497949886485, 27.7523090448274};
    public static final double[] YONG_ZHONG = {116.04801256908105, 27.764489266672403};
    public static final double[] CHENGBEI = {116.05083134025335, 27.78274489130171};
    public static final double[] YIMU = {116.06179579161108, 27.780238298884917};
    public static final double[] XINJIE = {116.0569392645266, 27.775902775818285};
    public static final double[] NANDAO = {116.05398381594571, 27.765387699087427};
    public static final double[] SHENGLI = {116.05763011146338, 27.758979599138858};
    public static final double[] HUANGJIA = {116.06998477480374, 27.766637205647783};
    public static final double[] ZHONGDA = {116.06510639190675, 27.752823008396483};
    public static final double[] ZHONG_ZI = {116.08546817209574, 27.758020310248185};
    public static final double[] ZI_GAO = {116.11514568328859, 27.774506608946538};

    //单独网络请求接口名
    public static final String SHOP_DETAIL = "/shop/merchant/detail?merchantId=";
    public static final String SHOP_PUNISH_LIST = "/shop/punish/listByMerchant?merchantId=";
    public static final String SHOP_PUNISH_TYPE = "/shop/punish/statisticByMerchant?merchantId=";
    public static final String SHOP_MERCHANT_ID = "/shop/merchant/getIdByCode?shopCode=";

    //配置项
    public static final String PROJECT_CONFIG = "http://111.198.10.15:11404/bridge/static/project.config.json";
    public static final String LAYER_CONFIG = "http://111.198.10.15:11404/dcms/static/project.config.json";

    public static final String TOILET_SERVICE_URL = "/arcgis/rest/services/crbjfc/FeatureServer";//崇仁公厕特征图层
}
