RequestBody.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System.Collections.Generic;
  2. namespace RequestServer.HttpServer
  3. {
  4. public class RequestBody
  5. {
  6. public string deviceType
  7. { get; set; }
  8. public string machineName
  9. { get; set; }
  10. public string port
  11. { get; set; }
  12. public string prgName
  13. { get; set; }
  14. public string serverUrl
  15. { get; set; }
  16. public string userName
  17. { get; set; }
  18. public string password
  19. { get; set; }
  20. public string path
  21. { get; set; }
  22. public string address
  23. { get; set; }
  24. public string value
  25. { get; set; }
  26. public string type
  27. { get; set; }
  28. public ushort toolNo
  29. { get; set; }
  30. }
  31. /// <summary>
  32. /// 设备名称
  33. /// </summary>
  34. public enum DeviceTypeEnum
  35. {
  36. Opcua,
  37. Fanuc,
  38. Heidenhain,
  39. Mitsubishi,
  40. MtConnect,
  41. Mazaka
  42. }
  43. /// <summary>
  44. /// 类型名称
  45. /// </summary>
  46. public enum ActionTypeEnum
  47. {
  48. Connect,
  49. Collect,
  50. ToolNoData,
  51. ToolList,
  52. DeleteTool,
  53. SetTool,
  54. Upload,
  55. DownLoad,
  56. StartNcProgram,
  57. SelectNcProgram,
  58. DeleteNc,
  59. AlmInfo,
  60. Write,
  61. Read
  62. }
  63. }