package com.casic.dcms.utils;

import android.Manifest;
import android.graphics.Color;

import com.casic.dcms.R;

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

public class Constant {
    public static final String[] USER_PERMISSIONS = {Manifest.permission.ACCESS_LOCATION_EXTRA_COMMANDS,
            Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION,
            Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO,
            Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.CALL_PHONE, Manifest.permission.READ_PHONE_STATE};
    public static final String[] CASE_PAGE_TITLES = {"待办案卷", "已办案卷"};
    public static final String[] CHART_PAGE_TITLES = {"表格", "饼状图"};

    public static final List<Integer> ANALYSIS_ICONS = Arrays.asList(
            R.drawable.ic_wtly, R.drawable.ic_ajzt, R.drawable.ic_gfwt,
            R.drawable.ic_jdtj, R.drawable.ic_cltj, R.drawable.ic_qsfx);

    public static final List<String> ANALYSIS_ITEMS = Arrays.asList(
            "问题来源", "案卷状态", "高发问题",
            "街道统计", "处理统计", "趋势分析");

    //先预置8种颜色
    public static final int[] PIE_COLORS = {Color.rgb(28, 197, 220),
            Color.rgb(255, 223, 107), Color.rgb(242, 17, 112),
            Color.rgb(254, 254, 204), Color.rgb(251, 54, 64),
            Color.rgb(216, 248, 183), Color.rgb(129, 178, 20),
            Color.rgb(120, 104, 230)};

    public static final String IP_KEY = "BASE_IP";

    public static final long FIVE_YEARS = 5L * 365 * 1000 * 60 * 60 * 24L;
    public static final int PERMISSIONS_CODE = 999;
    public static final int REQUEST_MAP_CODE = 9001;
    public static final int REQUEST_REFRESH_CODE = 9002;

    public static final int PAGE_LIMIT = 15;

    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 = 11;
    public static final int PUSH_MESSAGE_DATA = 12;//透传消息，包含消息的详细数据
    public static final int PUSH_CREATE_NOTIFICATION = 13;
    public static final int LOGIN_OUT = 14;
    public static final int CASE_VERIFY_OK = 15;
    public static final int CASE_CHECK_OK = 16;
    public static final int CASE_HANDLE_OK = 17;
    public static final int CASE_OVERTIME_OK = 18;
    public static final int CASE_URGENT_OK = 19;
    public static final int UPLOAD_LOCATION = 20;

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

    //生产环境
    public static final String BASE_MAP_SERVICE_URL = "http://111.198.10.15:13002/arcgis/rest/services/crdt/MapServer";//崇仁城管地图底图
    public static final String BASE_MAP_NO_SERVICE_URL = "http://111.198.10.15:13002/arcgis/rest/services/crdt_1/MapServer";//崇仁城管地图不带网格底图
    public static final String COMPONENT_SERVICE_URL = "http://111.198.10.15:13002/arcgis/rest/services/crbj/FeatureServer";//崇仁部件图层

    //正式环境
//    public static final String BASE_MAP_SERVICE_URL = "http://223.82.47.232:11408/arcgis/rest/services/crdt/MapServer";//崇仁城管地图底图
//    public static final String BASE_MAP_NO_SERVICE_URL = "http://223.82.47.232:11408/arcgis/rest/services/crdt_1/MapServer";//崇仁城管地图不带网格底图
//    public static final String COMPONENT_SERVICE_URL = "http://223.82.47.232:11408/arcgis/rest/services/crbj/FeatureServer";//崇仁部件图层
}
