using System.Collections.Generic; namespace RequestServer.HttpServer { public class RequestBody { public string deviceType { get; set; } public string machineName { get; set; } public string port { get; set; } public string prgName { get; set; } public string serverUrl { get; set; } public string userName { get; set; } public string password { get; set; } public string path { get; set; } public string address { get; set; } public string value { get; set; } public string type { get; set; } public ushort toolNo { get; set; } public T data { get; set; } } public class ToolData { /// /// 刀位号 /// public ushort pkno { get; set; } /// /// 刀具长度 /// public int lengthA { get; set; } /// /// 刀具名称 /// public byte name { get; set; } /// /// 公称径 /// public int int0 { get; set; } /// /// 刀具径刀尖角 /// public int diameter { get; set; } /// /// 材料 /// public string string0 { get; set; } /// /// 刀具寿命 /// public int lifetime { get; set; } /// /// 刀具次数 /// public ushort lifenumber { get; set; } /// /// 刀具使用时间 /// public int usetime { get; set; } /// /// 刀具使用次数 /// public ushort usenumber { get; set; } /// /// 组号 /// public int int1 { get; set; } /// /// 磨损补偿 /// public int wearcompZ { get; set; } /// /// 磨损极限 /// public int maxwearZ { get; set; } /// /// 刀尖补偿 /// public short angle { get; set; } /// /// 最高转速 /// public int easycompX { get; set; } /// /// 径补偿量 /// public int easycompY { get; set; } /// /// 长度补偿 /// public int conscompZ { get; set; } } /// /// 设备名称 /// public enum DeviceTypeEnum { Opcua, Fanuc, Heidenhain, Mitsubishi, MtConnect, Mazaka } /// /// 类型名称 /// public enum ActionTypeEnum { Connect, Collect, ToolNoData, ToolList, DeleteTool, SetTool, Upload, DownLoad, StartNcProgram, SelectNcProgram, DeleteNc, AlmInfo, Write, Read, UploadNoSet, SetMainProgram, DeleteOrSetTool } }