AlipayCommerceIotAdvertiserAdQueryResponse.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayCommerceIotAdvertiserAdQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayCommerceIotAdvertiserAdQueryResponse, self).__init__()
  8. self._device_sn_list = None
  9. self._end_time = None
  10. self._ext_info = None
  11. self._gmt_create = None
  12. self._gmt_modified = None
  13. self._id = None
  14. self._material_url = None
  15. self._plan_name = None
  16. self._start_time = None
  17. self._status = None
  18. @property
  19. def device_sn_list(self):
  20. return self._device_sn_list
  21. @device_sn_list.setter
  22. def device_sn_list(self, value):
  23. if isinstance(value, list):
  24. self._device_sn_list = list()
  25. for i in value:
  26. self._device_sn_list.append(i)
  27. @property
  28. def end_time(self):
  29. return self._end_time
  30. @end_time.setter
  31. def end_time(self, value):
  32. self._end_time = value
  33. @property
  34. def ext_info(self):
  35. return self._ext_info
  36. @ext_info.setter
  37. def ext_info(self, value):
  38. self._ext_info = value
  39. @property
  40. def gmt_create(self):
  41. return self._gmt_create
  42. @gmt_create.setter
  43. def gmt_create(self, value):
  44. self._gmt_create = value
  45. @property
  46. def gmt_modified(self):
  47. return self._gmt_modified
  48. @gmt_modified.setter
  49. def gmt_modified(self, value):
  50. self._gmt_modified = value
  51. @property
  52. def id(self):
  53. return self._id
  54. @id.setter
  55. def id(self, value):
  56. self._id = value
  57. @property
  58. def material_url(self):
  59. return self._material_url
  60. @material_url.setter
  61. def material_url(self, value):
  62. self._material_url = value
  63. @property
  64. def plan_name(self):
  65. return self._plan_name
  66. @plan_name.setter
  67. def plan_name(self, value):
  68. self._plan_name = value
  69. @property
  70. def start_time(self):
  71. return self._start_time
  72. @start_time.setter
  73. def start_time(self, value):
  74. self._start_time = value
  75. @property
  76. def status(self):
  77. return self._status
  78. @status.setter
  79. def status(self, value):
  80. self._status = value
  81. def parse_response_content(self, response_content):
  82. response = super(AlipayCommerceIotAdvertiserAdQueryResponse, self).parse_response_content(response_content)
  83. if 'device_sn_list' in response:
  84. self.device_sn_list = response['device_sn_list']
  85. if 'end_time' in response:
  86. self.end_time = response['end_time']
  87. if 'ext_info' in response:
  88. self.ext_info = response['ext_info']
  89. if 'gmt_create' in response:
  90. self.gmt_create = response['gmt_create']
  91. if 'gmt_modified' in response:
  92. self.gmt_modified = response['gmt_modified']
  93. if 'id' in response:
  94. self.id = response['id']
  95. if 'material_url' in response:
  96. self.material_url = response['material_url']
  97. if 'plan_name' in response:
  98. self.plan_name = response['plan_name']
  99. if 'start_time' in response:
  100. self.start_time = response['start_time']
  101. if 'status' in response:
  102. self.status = response['status']