AlipayMarketingSearchcodeCreateResponse.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMarketingSearchcodeCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMarketingSearchcodeCreateResponse, self).__init__()
  8. self._end_content = None
  9. self._keywords = None
  10. self._pre_content = None
  11. self._search_code = None
  12. @property
  13. def end_content(self):
  14. return self._end_content
  15. @end_content.setter
  16. def end_content(self, value):
  17. self._end_content = value
  18. @property
  19. def keywords(self):
  20. return self._keywords
  21. @keywords.setter
  22. def keywords(self, value):
  23. self._keywords = value
  24. @property
  25. def pre_content(self):
  26. return self._pre_content
  27. @pre_content.setter
  28. def pre_content(self, value):
  29. self._pre_content = value
  30. @property
  31. def search_code(self):
  32. return self._search_code
  33. @search_code.setter
  34. def search_code(self, value):
  35. self._search_code = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayMarketingSearchcodeCreateResponse, self).parse_response_content(response_content)
  38. if 'end_content' in response:
  39. self.end_content = response['end_content']
  40. if 'keywords' in response:
  41. self.keywords = response['keywords']
  42. if 'pre_content' in response:
  43. self.pre_content = response['pre_content']
  44. if 'search_code' in response:
  45. self.search_code = response['search_code']