package net.northking.cctp.device.constants;


/**
 * 常量类
 *
 * @author jieying.li
 */
public class DeviceConstants {

    /**
     * redis的key前缀
     */
    public final static String MOBILE_INFO_PREFIX = "UITEST-mobile:device:info:";

    public final static String STF_PREFIX = "UITEST-stfAddress:device:";

    /**
     * redis锁前缀
     */
    public final static String LOCK_MOBILE = "lock:mobile:";

    public final static String LOCK_PC = "lock:mobile:";

    //安卓类型
    public final static String MOBILE_PLATFORM_ANDROID = "0";
    //IOS类型
    public final static String MOBILE_PLATFORM_IOS = "1";

    public final static String DEVICE_MOB_TYPE = "1";

    public final static String DEVICE_PC_TYPE = "2";

    public final static String ENGINE_STATUS_ONLINE = "1";

    public final static String ENGINE_STATUS_OFFLINE = "2";

    public final static String ORDER_BY_HEARTBEAT = "last_heartbeat_time desc";

    public final static String SERVICE_USE = "服务调用";

    public final static String DEVICE_PLATFORM = "platform";

    public final static String DEVICE_PLATFORM_VERSION = "platformVersion";

    public final static String DEVICE_SCREEN_SIZE = "screenSize";

    public final static String DEVICE_RESOLUTION = "resolution";

    public final static String DEVICE_CPU_BRAND = "cpuBrand";

    public final static String DEVICE_CPU_MODEL = "cpuModel";

    public final static String DEVICE_CPU_CORE_NUM = "cpuCoreNum";

    public final static String DEVICE_RAM_SIZE = "ramSize";

    public final static String DEVICE_STATUS_ONLINE = "1";

    public final static String DEVICE_STATUS_OFFLINE = "2";

    public final static String DEVICE_STATUS_REMOVE = "3";

    public final static String DEVICE_STATUS_LINK = "4";

    public final static String DEVICE_STATUS_LINK_ERR = "5";

    public final static String DEVICE_ID = "deviceId";

    public final static String DEVICE_LAST_HEART_BEAT_TIME = "lastHeartBeatTime";

    public final static String DEVICE_UUID = "id";

    public final static String DEVICE_NAME = "deviceName";

    public final static String DEVICE_TYPE = "deviceType";

    public final static String MODEL_NAME = "modelName";

    public final static String SYS_NAME_ANDROID = "Android";

    public final static String SYS_NAME_IOS = "IOS";

    public final static String DEVICE_SYSTEM = "system";

    public final static String DEVICE_IP_ADDR = "ipAddr";

    public final static String DEVICE_MAC_ADDR = "macAddr";

    public final static String DEVICE_OS_NAME = "osName";

    public final static String DEVICE_HAS_ANDROID = "hasAndroid";

    public final static String DEVICE_HAS_IOS = "hasIOS";

    public final static String MAP_KEY_TYPE = "type";

    public final static String ENGINE_NAME = "engine";

    public final static String DEVICE_LIST = "deviceList";

    public final static String USAGE_STATUS_FREE = "1";

    public final static String USAGE_STATUS_USE = "2";

    public final static String USAGE_STATUS_UN_USE = "3";

    public final static String STR_REGEX = "@";

    public final static String RAM_SIZE_M = "M";

    public final static String RAM_SIZE_G = "G";

    public final static String PC_USAGE_LOG = "PC设备远程连接:";

    public final static String MOB_USAGE_LOG = "移动端设备远程连接：";

    public final static String DEVICE_TOKEN = "token";

    public final static String RELEASE_SUCCESS = "设备释放成功";

    public final static String USE_BY_ENGINE = "1";

    public final static String USE_BY_USER = "0";

    public final static String USER_BY = "userBy";

    public final static String PC_DEIVCE_LOCK = "pc:device:";

    public final static String MOB_DEVICE_LOCK = "mobile:device:";

    public final static String CHECK_NAME_REGEX = "^[A-Za-z0-9]+$";

    public final static String CTRL_STATUS_OFFLINE = "1";

    public final static String CTRL_STATUS_ERR = "1";

    public final static String CTRL_STATUS_ONLINE = "2";

    public final static String CTRL_STATUS_DEL = "3";

    public final static String CTRL_REGISTER_SUCCESS = "上位机注册成功";

    public final static String CTRL_RESTART_MSG = "上位机正在重启！";

    public final static String DEVICE_REGISTER_SUCCESS = "设备注册成功";

    public final static String ENGINE_STOP_URL = "%s:%s/v1/stop";

    public final static String ENGINE_NO_ONLINE = "设备不处于在线状态，其余设备重启中";

    public final static String ENGINE_IS_RESTART = "引擎正在重启中";

    public final static String DEVICE_IP = "ip";

    public final static String DEVICE_PORT = "port";

    public final static String STR_TRUE = "true";

    public final static String DEVICE_IS_RESTART = "设备正在重启！";

    public final static String MOB_SERIAL = "serial";

    public final static String MOB_WDA_URL = "wdaUrl";

    public final static String MOB_REGISTER_SUCCESS = "移动设备注册成功！";

    public final static String TENANT_ALLOCATE_DEVICE = "tenant:allocate:device:";

    public final static String ALLOCATE_DEVICE_SUCCESS = "分配设备成功！";

    public final static String RECYCLE_DEVICE_SUCCESS = "设备回收成功！";

    public final static String PRO_ALLOCATE_DEVICE = "project:allocate:device:";

    public final static String SIMPLE_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public final static String CTRL_IP = "ctrlIp";

    public final static String CTRL_PORT = "ctrlPort";

    public final static String MOB_DEVICE_PLATFORM = "mobile_device_platform";

    public final static String DEVICE_BRAND_ID = "brandId";

    public final static String DEVICE_BRAND_NAME = "brandName";

    public final static String PC_REGISTER_SUCCESS = "PC设备新增成功！";

    public final static String STR_ERROR = "error";

    public final static String WS_DOWN = "down";

    public final static String WS_MAP_LIST = "mapList";

    public final static String WS_SOCKET_LIST = "socketList";

    public final static String WS_CORN = "0/15 * * * * ?";

    public final static String WS_STEP = "step";

    public final static String WS_AMOUNT = "amount";

    public static final String ENGINE_MOB_ACTIVE_THREAD_KEY = "engine:mobile:activeThread";
}
