WdkRexDeviceIotRegisteridResponse.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System;
  2. using System.Xml.Serialization;
  3. using System.Collections.Generic;
  4. namespace Top.Api.Response
  5. {
  6. /// <summary>
  7. /// WdkRexDeviceIotRegisteridResponse.
  8. /// </summary>
  9. public class WdkRexDeviceIotRegisteridResponse : TopResponse
  10. {
  11. /// <summary>
  12. /// 结果
  13. /// </summary>
  14. [XmlElement("result")]
  15. public IotResultDomain Result { get; set; }
  16. /// <summary>
  17. /// IotRegisterResultDomain Data Structure.
  18. /// </summary>
  19. [Serializable]
  20. public class IotRegisterResultDomain : TopObject
  21. {
  22. /// <summary>
  23. /// device_name
  24. /// </summary>
  25. [XmlElement("device_name")]
  26. public string DeviceName { get; set; }
  27. /// <summary>
  28. /// device_secret
  29. /// </summary>
  30. [XmlElement("device_secret")]
  31. public string DeviceSecret { get; set; }
  32. /// <summary>
  33. /// pk
  34. /// </summary>
  35. [XmlElement("product_key")]
  36. public string ProductKey { get; set; }
  37. }
  38. /// <summary>
  39. /// IotResultDomain Data Structure.
  40. /// </summary>
  41. [Serializable]
  42. public class IotResultDomain : TopObject
  43. {
  44. /// <summary>
  45. /// 数据
  46. /// </summary>
  47. [XmlElement("data")]
  48. public IotRegisterResultDomain Data { get; set; }
  49. /// <summary>
  50. /// code
  51. /// </summary>
  52. [XmlElement("msg_code")]
  53. public string MsgCode { get; set; }
  54. /// <summary>
  55. /// 信息
  56. /// </summary>
  57. [XmlElement("msg_info")]
  58. public string MsgInfo { get; set; }
  59. /// <summary>
  60. /// 结果
  61. /// </summary>
  62. [XmlElement("success")]
  63. public bool Success { get; set; }
  64. }
  65. }
  66. }