WdkRexDeviceIotRegisterResponse.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using System;
  2. using System.Xml.Serialization;
  3. using System.Collections.Generic;
  4. namespace Top.Api.Response
  5. {
  6. /// <summary>
  7. /// WdkRexDeviceIotRegisterResponse.
  8. /// </summary>
  9. public class WdkRexDeviceIotRegisterResponse : TopResponse
  10. {
  11. /// <summary>
  12. /// 结果封装
  13. /// </summary>
  14. [XmlElement("result")]
  15. public MtopResponseDomain Result { get; set; }
  16. /// <summary>
  17. /// IotRegisterResultDomain Data Structure.
  18. /// </summary>
  19. [Serializable]
  20. public class IotRegisterResultDomain : TopObject
  21. {
  22. /// <summary>
  23. /// 阿里云deviceName
  24. /// </summary>
  25. [XmlElement("device_name")]
  26. public string DeviceName { get; set; }
  27. /// <summary>
  28. /// 阿里云deviceSecrect
  29. /// </summary>
  30. [XmlElement("device_secret")]
  31. public string DeviceSecret { get; set; }
  32. }
  33. /// <summary>
  34. /// MtopResponseDomain Data Structure.
  35. /// </summary>
  36. [Serializable]
  37. public class MtopResponseDomain : TopObject
  38. {
  39. /// <summary>
  40. /// http头
  41. /// </summary>
  42. [XmlElement("headers")]
  43. public string Headers { get; set; }
  44. /// <summary>
  45. /// http返回值
  46. /// </summary>
  47. [XmlElement("http_status_code")]
  48. public long HttpStatusCode { get; set; }
  49. /// <summary>
  50. /// mtop字段
  51. /// </summary>
  52. [XmlElement("mapping_code")]
  53. public string MappingCode { get; set; }
  54. /// <summary>
  55. /// 业务结果封装
  56. /// </summary>
  57. [XmlElement("model")]
  58. public IotRegisterResultDomain Model { get; set; }
  59. /// <summary>
  60. /// 错误码
  61. /// </summary>
  62. [XmlElement("msg_code")]
  63. public string MsgCode { get; set; }
  64. /// <summary>
  65. /// 错误信息
  66. /// </summary>
  67. [XmlElement("msg_info")]
  68. public string MsgInfo { get; set; }
  69. /// <summary>
  70. /// 成功与否
  71. /// </summary>
  72. [XmlElement("success")]
  73. public bool Success { get; set; }
  74. }
  75. }
  76. }