using System;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
using Unity.VisualScripting;
using UnityEngine;
using static UnityEngine.Rendering.DebugUI;
[System.Serializable]
///
/// 响应数据
///
public class ResponseData
{
public string rtCode { get; set; }
public string rtMsg { get; set; }
public object rtData { get; set; }
}
///
/// 机器人列表数据
///
[System.Serializable]
public class RobotClass
{
public RobotClass(RobotClass robotClass)
{
this.statusStr = robotClass.statusStr;
this.modelId = robotClass.modelId;
this.robotName = robotClass.robotName;
this.updateTime = robotClass.updateTime;
this.remark = robotClass.remark;
this.modelType = robotClass.modelType;
this.ipAddr = robotClass.ipAddr;
this.roomId = robotClass.roomId;
this.roomName = robotClass.roomName;
this.pileout_time = robotClass.pileout_time;
this.picUrl = robotClass.picUrl;
this.robot_status = robotClass.robot_status;
this.taskScheduStatus = robotClass.taskScheduStatus;
this.robot_id = robotClass.robot_id;
this.name = robotClass.name;
this.onOffLineStatus = robotClass.onOffLineStatus;
this.model = robotClass.model;
this.id = robotClass.id;
this.power = robotClass.power;
this.runStatus = robotClass.runStatus;
this.status = robotClass.status;
}
///
/// 状态描述
///
public string statusStr { get; set; }
///
/// 机器人型号id
///
public int modelId { get; set; }
///
/// 机器人名称
///
public string robotName { get; set; }
///
/// 更新时间
///
public string updateTime { get; set; }
///
/// 备注
///
public string remark { get; set; }
///
/// 型号类型
///
public string modelType { get; set; }
///
/// IP
///
public string ipAddr { get; set; }
///
/// 机房id
///
public string roomId { get; set; }
///
/// 机房名称
///
public string roomName { get; set; }
///
///
///
public string pileout_time { get; set; }
///
///
///
public string picUrl { get; set; }
///
///
///
public string robot_status { get; set; }
///
///
///
public string taskScheduStatus { get; set; }
///
/// 机器人id
///
public string robot_id { get; set; }
///
/// 机器人名称
///
public string name { get; set; }
///
/// 在线离线状态
///
public string onOffLineStatus { get; set; }
///
/// 型号名称
///
public string model { get; set; }
///
/// 机器人id
///
public string id { get; set; }
///
///
///
public string power { get; set; }
///
/// 运行状态
///
public string runStatus { get; set; }
///
/// 机器人状态
///
public string status { get; set; }
}
[System.Serializable]
///
/// 机柜列表数据
///
public class CabinClass
{
///
/// 机柜id
///
public string id { get; set; }
///
/// 机房ID
///
public string roomId { get; set; }
///
/// 机柜编号
///
public string serialNo { get; set; }
///
/// R72省网/5.8G LTE/LoRa设备屏
///
public string name { get; set; }
///
///
///
public string type { get; set; }
///
/// 机柜方向
///
public string description { get; set; }
///
///
///
public string baseUrl { get; set; }
///
/// U位
///
public string unum { get; set; }
///
/// 宽高
///
public string widthHeight { get; set; }
///
///
///
public string createUid { get; set; }
///
///
///
public string status { get; set; }
///
/// 创建时间
///
public string createTime { get; set; }
///
/// 更新时间
///
public string updateTime { get; set; }
///
/// 宽度
///
public string width { get; set; }
///
/// 高度
///
public string height { get; set; }
///
/// 深度
///
public string deep { get; set; }
///
/// 边框尺寸
///
public string borderSize { get; set; }
///
/// 机柜类型码
///
public string typeCode { get; set; }
///
/// 机柜类型名称
///
public string typeName { get; set; }
///
/// 机房名称
///
public string roomName { get; set; }
///
/// 设备数量
///
public int deviceNum { get; set; }
}
#region 机器人地图数据
[System.Serializable]
///
/// 机器人地图信息
///
public class RobotMapInfo
{
///
/// 高度
///
public int height { get; set; }
///
/// 激光地图原点
///
public RobotMapOrigin origin { get; set; }
///
/// 分辨率
///
public double resolution { get; set; }
///
/// 宽度
///
public int width { get; set; }
}
[System.Serializable]
///
/// 机器人地图——激光地图原点
///
public class RobotMapOrigin
{
///
///
///
public string id { get; set; }
///
/// 角度
///
public int theta { get; set; }
///
/// x坐标
///
public int x { get; set; }
///
/// y坐标
///
public int y { get; set; }
}
[System.Serializable]
///
/// 机器人地图
///
public class RobotMap
{
///
///
///
public RobotMapInfo info { get; set; }
///
///
///
public string limit_speed_area { get; set; }
///
/// 地图名称
///
public string map_name { get; set; }
///
/// 地图数据
///
public string png_map { get; set; }
///
/// 导航点数据
///
public List point { get; set; }
///
///
///
public string tracker { get; set; }
///
///
///
public string umap { get; set; }
///
///
///
public List wall { get; set; }
}
[System.Serializable]
///
/// 机器人地图——导航点数据
///
public class RobotMapPoint
{
///
/// 描述
///
public string description { get; set; }
///
/// 显示x坐标
///
public double display_x { get; set; }
///
/// 显示y坐标
///
public double display_y { get; set; }
///
/// 地图x坐标
///
public double map_x { get; set; }
///
/// 地图y坐标
///
public double map_y { get; set; }
///
/// 点位名称
///
public string point_name { get; set; }
///
///
///
public string point_type { get; set; }
///
/// 角度
///
public double theta { get; set; }
}
[System.Serializable]
///
/// 机器人地图Wall
///
public class RobotMapWall
{
///
///
///
public List data { get; set; }
///
///
///
public string type { get; set; }
}
#endregion
[System.Serializable]
///
/// 定点任务-巡检点列表
///
public class RobotFixedPointins
{
///
/// 机柜id
///
public string cabinId { get; set; }
///
/// 备注
///
public string remark { get; set; }
///
/// 机柜朝向名字
///
public string directionName { get; set; }
///
/// 机柜类型
///
public string cabinType { get; set; }
///
/// 巡检点编号
///
public string pointNo { get; set; }
///
/// 机房id
///
public string roomId { get; set; }
///
/// 机柜编号
///
public string cabinNo { get; set; }
///
/// 点序号
///
public int sequence { get; set; }
///
/// 机柜类型名字
///
public string cabinTypeName { get; set; }
///
/// 巡检点id
///
public string id { get; set; }
///
/// 机柜名字
///
public string cabinName { get; set; }
///
/// 机柜朝向编码
///
public string direction { get; set; }
///
/// 巡检点状态
///
public int status { get; set; }
}
#region 机器人位置状态信息
[System.Serializable]
///
/// 当前坐标
///
public class Current_pose
{
///
///
///
public string id { get; set; }
///
/// 角度
///
public double theta { get; set; }
///
/// x坐标
///
public double x { get; set; }
///
/// y坐标
///
public double y { get; set; }
}
[System.Serializable]
///
/// 机器人位置状态信息
///
public class RobotPos
{
///
///
///
public string base_url { get; set; }
///
///
///
public int battery { get; set; }
///
///
///
public string current_mapname { get; set; }
///
///
///
public Current_pose current_pose { get; set; }
///
///
///
public string mode { get; set; }
///
///
///
public string name { get; set; }
///
///
///
public string robotId { get; set; }
///
///
///
public string status { get; set; }
///
///
///
public string system_status { get; set; }
///
///
///
public int system_status_code { get; set; }
}
#endregion
#region 机器人信息
[System.Serializable]
public class RobotInfo
{
///
///
///
public string pm25_value { get; set; }
///
///
///
public int modelId { get; set; }
///
///
///
public string temperature_value { get; set; }
///
/// 湿度
///
public string humidity_text { get; set; }
///
///
///
public string ipAddr { get; set; }
///
///
///
public string roomId { get; set; }
///
///
///
public string picUrl { get; set; }
///
///
///
public string onOffLineStatus { get; set; }
///
///
///
public string model { get; set; }
///
///
///
public string id { get; set; }
///
///
///
public int power { get; set; }
///
/// 故障中
///
public string runStatus { get; set; }
///
/// 巡检机器人
///
public string robotName { get; set; }
///
///
///
public string pm25_text { get; set; }
///
///
///
public string updateTime { get; set; }
///
///
///
public string modelType { get; set; }
///
///
///
public string roomName { get; set; }
///
///
///
public string pileout_time { get; set; }
///
/// 温度
///
public string temperature_text { get; set; }
///
///
///
public string robot_status { get; set; }
///
///
///
public int charger { get; set; }
///
///
///
public string humidity_value { get; set; }
///
/// 设备温度
///
public string equipment_temperature_text { get; set; }
///
///
///
public string robot_id { get; set; }
///
///
///
public string patrol_point_no { get; set; }
///
/// 巡检机器人
///
public string name { get; set; }
///
///
///
public string task_type { get; set; }
///
/// 噪声
///
public string noise_text { get; set; }
///
///
///
public string noise_value { get; set; }
}
#endregion
[System.Serializable]
public class RobotTask
{
///
/// 任务数据组
///
public List data { get; set; }
///
/// 机器人id
///
public string robotId { get; set; }
}
[System.Serializable]
///
/// 【机器人任务队列】
///
public class RobotTask_data
{
///
/// 任务id
///
public string Tast_Id { get; set; }
///
///
///
public string Ins_Id { get; set; }
///
/// 任务队列id
///
public string TaskQueue_Id { get; set; }
///
/// 任务状态
///
public string Task_State { get; set; }
///
/// 任务名称
///
public string taskName { get; set; }
///
///
///
public string Task_Name { get; set; }
///
/// 任务类型名称
///
public string taskTypeName { get; set; }
///
/// 任务类型
///
public string Task_type { get; set; }
///
/// 任务点集合
///
public List Pois { get; set; }
}
[System.Serializable]
///
///
///
public class RobotTask_pois
{
///
/// 开门状态
///
public string OpenDoor_State { get; set; }
///
/// 点名称
///
public string Point_Name { get; set; }
///
/// 动环状态
///
public string Sensor_State { get; set; }
///
/// 热成像状态
///
public string Inventory_State { get; set; }
///
/// 关门状态
///
public string CloseDoor_State { get; set; }
///
/// 基准照状态
///
public string TakeNormalPhoto_State { get; set; }
///
/// 点状态
///
public string Point_State { get; set; }
///
/// 二维码盘点状态
///
public string QrInventory_State { get; set; }
///
/// 拍照状态
///
public string Photo_State { get; set; }
///
/// 播放音频状态
///
public string Voice_State { get; set; }
///
/// 机柜编号
///
public string cabinNo { get; set; }
}
#region 巡检报表数据
[System.Serializable]
public class InsItem
{
///
/// 告警记录id
///
public string alarmId { get; set; }
///
/// 告警等级
///
public string alarmLevel { get; set; }
///
/// 告警等级名称
///
public string alarmLevelName { get; set; }
///
/// 告警状态 1告警 0 未告警
///
public string alarmStatus { get; set; }
///
/// 告警类型
///
public string alarmType { get; set; }
///
/// 告警类型名称
///
public string alarmTypeName { get; set; }
///
/// 机柜id
///
public string cabinId { get; set; }
///
/// 机柜名称
///
public string cabinName { get; set; }
///
/// 机柜编号
///
public string cabinNo { get; set; }
///
/// 机柜类型
///
public string cabinType { get; set; }
///
/// 设备id
///
public string equipmentId { get; set; }
///
/// 设备名称
///
public string equipmentName { get; set; }
///
///
///
public string id { get; set; }
///
///
///
public string image { get; set; }
///
/// 序号
///
public int index { get; set; }
///
/// 巡检记录id
///
public string inspectionId { get; set; }
///
/// 可见光图片地址
///
public string picUrl { get; set; }
///
/// 识别点坐标
///
public string pointStation { get; set; }
///
/// 机柜朝向
///
public string position { get; set; }
///
///
///
public string positionName { get; set; }
///
/// 识别点id
///
public string resizePointId { get; set; }
///
/// 识别点名称
///
public string resizePointName { get; set; }
///
/// 识别点类型
///
public string resizePointType { get; set; }
///
/// 识别点类型名称
///
public string resizePointTypeName { get; set; }
///
/// 机器人id
///
public string robotId { get; set; }
///
/// 机器人名称
///
public string robotName { get; set; }
///
/// 机房id
///
public string roomId { get; set; }
///
/// 机房名称
///
public string roomName { get; set; }
///
/// 识别点识别结果
///
public string status { get; set; }
///
/// 更新时间
///
public string updateTime { get; set; }
}
[System.Serializable]
public class ThermalItem
{
///
/// 告警等级
///
public string alarmLevel { get; set; }
///
/// 告警等级名称
///
public string alarmLevelName { get; set; }
///
/// 告警状态 1告警 0未告警
///
public string alarmStatus { get; set; }
///
/// 告警类型
///
public string alarmType { get; set; }
///
/// 告警类型名称
///
public string alarmTypeName { get; set; }
///
/// 机柜方向
///
public string cabinDirection { get; set; }
///
/// 机柜id
///
public string cabinId { get; set; }
///
/// 机柜名
///
public string cabinName { get; set; }
///
/// 机柜编号
///
public string cabinNo { get; set; }
///
/// 热成像数据记录id
///
public string id { get; set; }
///
/// 序列
///
public int index { get; set; }
///
/// 巡检记录id
///
public string inspectionId { get; set; }
///
///
///
public string pic1 { get; set; }
///
///
///
public string pic2 { get; set; }
///
///
///
public string pic3 { get; set; }
///
///
///
public string pic4 { get; set; }
///
///
///
public string pic5 { get; set; }
///
///
///
public string pic6 { get; set; }
///
///
///
public string pic7 { get; set; }
///
/// 机器人id
///
public string robotId { get; set; }
///
/// 机器人名称
///
public string robotName { get; set; }
///
/// 机房id
///
public string roomId { get; set; }
///
/// 机房名
///
public string roomName { get; set; }
///
/// 热成像照片数据信息
///
public string status { get; set; }
///
/// 热成像数据
///
public string thermalData { get; set; }
///
/// 告警时间
///
public string time { get; set; }
}
[System.Serializable]
///
/// 巡检报表
///
public class InsReport
{
///
/// 完成比例
///
public string completionRatio { get; set; }
///
/// 任务结束时间
///
public string endTime { get; set; }
///
/// 可见光数据
///
public List ins { get; set; }
///
/// 任务点位数
///
public string pointNum { get; set; }
///
/// 任务开始时间
///
public string startTime { get; set; }
///
/// 任务名称
///
public string taskName { get; set; }
///
/// 热成像数据
///
public List thermal { get; set; }
///
/// 任务持续时间 分钟
///
public string times { get; set; }
}
#endregion
[System.Serializable]
public class ResponseData_ma
{
///
///
///
public string code { get; set; }
///
/// 操作成功
///
public string message { get; set; }
///
///
///
public object data { get; set; }
///
///
///
public string serverTime { get; set; }
}
[System.Serializable]
///
/// 巡检结果数据
///
public class InspectionResult
{
///
///
///
public int id { get; set; }
///
///
///
public string inspectionResult { get; set; }
///
///
///
public int instructId { get; set; }
///
///
///
public string createTime { get; set; }
}
//[System.Serializable]
//public class PointNo
//{
// public string send_directive;
// public PointNo(string point)
// {
// send_directive = "{\"pointNo\":\"" + point + "\",\"04\":\"0\",\"06\":\"0\",\"01\":\"1\",\"cabinType\":\"1\",\"03\":\"0\",\"05\":\"0\"}";
// }
//}
/////
///// 点位集合
/////
//[System.Serializable]
//public class PointList
//{
// public List pointList { get; set; }
//}
[System.Serializable]
public class PointData
{
public string pointNo { get; set; }
public string _04 = "0";
public string _06 = "0";
public string _01 = "1";
public string cabinType = "1";
public string _03 = "0";
public string _05 = "0";
public string BackToString(string pointNo)
{
//
//{\"robotIp\":\"10.145.133.140\",\"pointList\":[{\"pointNo\":\"xj45\",\"04\":\"0\",\"06\":\"0\",\"01\":\"1\",\"cabinType\":\"1\",\"03\":\"0\",\"05\":\"0\"}]}
//string temp = $"{"{\"pointNo\":\"{pointNo}\",\"04\":\"0\",\"06\":\"0\",\"01\":\"1\",\"cabinType\":\"1\",\"03\":\"0\",\"05\":\"0\"}"}";
string temp = string.Format("{{\"pointNo\":\"{0}\",\"04\":\"0\",\"06\":\"0\",\"01\":\"1\",\"cabinType\":\"1\",\"03\":\"0\",\"05\":\"0\"}}", pointNo);
return temp;
}
}
///
/// 点位集合
///
[System.Serializable]
public class RootObjectPoin
{
public string robotIp { get; set; }
public List pointList { get; set; }
}
///
/// 机柜 & 巡检点
///
[System.Serializable]
public class CabinDictionary
{
[SerializeField] public string id;
[SerializeField] public string name;
///
/// 巡检点集合
///
[SerializeField] public List pointNos = new List();
}
///
/// 机柜 & 巡检点【集合】
///
[System.Serializable]
public class RootCabinDictionary
{
[SerializeField] public List cabinDictionaries;
}
public class BASE64_INTERFACE
{
public string instructId;
public string inspectionResult;
}