package com.sd.cavphmi.utils

object MyContants {
    //    const val IS_DEBUG = true
     //测试环境
//    var HOST = "https://itg-dev.cu-sc.com:19443/"
    //开发环境切勿动
    var HOST = "https://itg-yz.cu-sc.com:13443"

    /***测试环境socket token***/
    private val WSTOKEN =
        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI0MTc0NDY3NGNlOGM0MDZmOTVkZTVkYWYyMWVlOWQ0ZiIsImNyZWF0ZVRpbWUiOjE3NTUwNzYxMTgxMjQsInVzZXJUeXBlIjoxLCJzb3VyY2UiOjAsInB3ZEV4cGlyZWQiOmZhbHNlLCJ1c2VybmFtZSI6ImNoZW5ieTUxIn0.aPYHCxXgQHj4eYGGZnce5MPJCtmMoRcIIHcNXzMMOHE"

    //登录后拿到Token
    var HTTP_TOKEN =
        "aQQ8U2YPfcnrKgdwrIXcLXdtKyaFavYfKlWkNn26fenMLE2fIMPtbt5dSJX3qgM4yHZJ9bY4esSMHRH0FCs1nMte9P5qsaThTe7frFD9RAtWdlyWof4yISiTfkp0ZHiB"

    //仅仅用于测试接口联通性，这里可不传
//    private val reType = "51world"
    //跟踪车辆的ID 267(模拟) skywell.1ggvlp16.car10  skywell.1ggvlp16.car8
    private val VEHICLEID = "skywell.1ggvlp16.car8"
//    var WSHOST = "wss://itg-dev.cu-sc.com:19443/WSPLUSV5/socket?token=${WSTOKEN}&vehicleId=${VEHICLEID}&"
    var WSHOST = "wss://172.24.124.130:19443/wsplus/socket?token=121&reType=freedo&vehicleId=7&"

//    var PORT = if (IS_DEBUG) "123" else "34534"
    /***感知目标物  &intersectionCode=17 停车场  不传就是整个园区***/
    var WS_FEEL_TARGET = "${WSHOST}msgType=1&intersectionCode=17"

    /***网联车辆位姿  &vehicleId=***/
//    var WS_VEH_LOC = "${WSHOST}msgType=2"
    var WS_VEH_LOC = "wss://172.24.124.130:19443/wsplus/socket?token=121&reType=freedo&msgType=2&vehicleId=7"

    /***V2X预警  vehicleId 传了就是获取某一辆车的预警 &vehicleId=***/
    var WS_V2X = "${WSHOST}msgType=4"

    /***网联车辆状态 &vehicleId=''***/
    var WS_VEH_STATU = "${WSHOST}msgType=6"

    /***感知延时 &intersectionCode=''***/
    var WS_PRE_DELAY = "${WSHOST}msgType=7"

    /***交通（感知）事件 &intersectionCode=''***/
    var WS_TRAFFIC_PER = "${WSHOST}msgType=5"

    /***交通信号灯  &intersectionCode=''***/
    var WS_TRAFFIC_LIGHT = "${WSHOST}msgType=3&"


    /***已经**/
    const val ALREADT_ONCE = -1

    const val HTTP_ERROR = 500

}