KoubeiMarketingAdvertisingQueryResponse.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiMarketingAdvertisingQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiMarketingAdvertisingQueryResponse, self).__init__()
  8. self._action_url = None
  9. self._ad_code = None
  10. self._ad_rules = None
  11. self._content = None
  12. self._content_type = None
  13. self._end_time = None
  14. self._height = None
  15. self._start_time = None
  16. self._status = None
  17. @property
  18. def action_url(self):
  19. return self._action_url
  20. @action_url.setter
  21. def action_url(self, value):
  22. self._action_url = value
  23. @property
  24. def ad_code(self):
  25. return self._ad_code
  26. @ad_code.setter
  27. def ad_code(self, value):
  28. self._ad_code = value
  29. @property
  30. def ad_rules(self):
  31. return self._ad_rules
  32. @ad_rules.setter
  33. def ad_rules(self, value):
  34. self._ad_rules = value
  35. @property
  36. def content(self):
  37. return self._content
  38. @content.setter
  39. def content(self, value):
  40. self._content = value
  41. @property
  42. def content_type(self):
  43. return self._content_type
  44. @content_type.setter
  45. def content_type(self, value):
  46. self._content_type = value
  47. @property
  48. def end_time(self):
  49. return self._end_time
  50. @end_time.setter
  51. def end_time(self, value):
  52. self._end_time = value
  53. @property
  54. def height(self):
  55. return self._height
  56. @height.setter
  57. def height(self, value):
  58. self._height = value
  59. @property
  60. def start_time(self):
  61. return self._start_time
  62. @start_time.setter
  63. def start_time(self, value):
  64. self._start_time = value
  65. @property
  66. def status(self):
  67. return self._status
  68. @status.setter
  69. def status(self, value):
  70. self._status = value
  71. def parse_response_content(self, response_content):
  72. response = super(KoubeiMarketingAdvertisingQueryResponse, self).parse_response_content(response_content)
  73. if 'action_url' in response:
  74. self.action_url = response['action_url']
  75. if 'ad_code' in response:
  76. self.ad_code = response['ad_code']
  77. if 'ad_rules' in response:
  78. self.ad_rules = response['ad_rules']
  79. if 'content' in response:
  80. self.content = response['content']
  81. if 'content_type' in response:
  82. self.content_type = response['content_type']
  83. if 'end_time' in response:
  84. self.end_time = response['end_time']
  85. if 'height' in response:
  86. self.height = response['height']
  87. if 'start_time' in response:
  88. self.start_time = response['start_time']
  89. if 'status' in response:
  90. self.status = response['status']