123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using XRTool.Util;
- using System.Net;
- using System.Security.Cryptography.X509Certificates;
- public class HttpActionLang : Singleton<HttpActionLang>
- {
- public const string signal_certification = "/cmcc-endustry/v1/signal/certification";
- public const string signal_contact = "/cmcc-endustry/v1/signal/contact";
- public const string rtc_CreateRoom = "/cmcc-endustry/v1/rtc/createRoom";
- public const string rtc_JoinRoom = "/cmcc-endustry/v1/rtc/joinRoom";
- public const string login = "/cmcc-endustry/v1/user/login";
- public const string userinfo = "/cmcc-endustry/v1/user/info";
- public const string apply = "/cmcc-endustry/v1/assistance/apply";
- public const string cancel_Apply = "/cmcc-endustry/v1/assistance/cancel";
- public const string inspection_begin = "/cmcc-endustry/v1/inspection/begin"; // 机房巡检开始
- public const string inspection_step = "/cmcc-endustry/v1/inspection/step"; // 机房巡检步骤上报
- public const string storage_inspectionCredential = "/cmcc-endustry/v1/storage/inspectionCredential"; //
- public const string storage_roomCredential = "/cmcc-endustry/v1/storage/roomCredential"; //
- public const string rtc_leave = "/cmcc-endustry/v1/assistance/leave";
- // public const string storage_roomCredential = "";
-
- /// <summary>
- /// 获取刀片机详细信息
- /// </summary>
- public const string bladeServer = "/cmcc-endustry/v1/navigation/device";
- /// <summary>
- /// 获取机房信息
- /// </summary>
- public const string sceneInit = "/cmcc-endustry/v1/navigation/cabinet";
- /// <summary>
- /// 修改机柜信息
- /// </summary>
- public const string updateCabinet = "/cmcc-endustry/v1/navigation/updateCabinet";
- /// <summary>
- /// 修改场景TagData
- /// </summary>
- public const string updateTag = "/cmcc-endustry/v1/navigation/updateRoomTagData";
- public string mqttSocket ="";
- public string mqttPort = "";
- /// <summary>
- /// 设备状态信息
- /// </summary>
- public const string aiDeviceState = "/feature-tester/v1/AIot/device/statisticsEquipmentStatus";
- /// <summary>
- /// 获取设备数据节点
- /// </summary>
- public const string aiDeviceDataPoint = "/feature-tester/v1/AIot/device/getDatapoint";
- /// <summary>
- /// 获取设备告警记录
- /// </summary>
- public const string aiDeviceAlarm = "/feature-tester/v1/AIot/alarm/getalarmrecord";
- public static void BypassSSLValidation()
- {
- System.Net.ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
- // 绕过所有SSL证书验证
- ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
- }
- }
|