AlipayMarketingCdpAdvertiseQueryResponse.py 3.4 KB

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