KoubeiMarketingTessssssssssstQueryResponse.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.Category import Category
  6. from alipay.aop.api.domain.SpiOutputObject import SpiOutputObject
  7. class KoubeiMarketingTessssssssssstQueryResponse(AlipayResponse):
  8. def __init__(self):
  9. super(KoubeiMarketingTessssssssssstQueryResponse, self).__init__()
  10. self._a = None
  11. self._category = None
  12. self._output = None
  13. @property
  14. def a(self):
  15. return self._a
  16. @a.setter
  17. def a(self, value):
  18. self._a = value
  19. @property
  20. def category(self):
  21. return self._category
  22. @category.setter
  23. def category(self, value):
  24. if isinstance(value, Category):
  25. self._category = value
  26. else:
  27. self._category = Category.from_alipay_dict(value)
  28. @property
  29. def output(self):
  30. return self._output
  31. @output.setter
  32. def output(self, value):
  33. if isinstance(value, SpiOutputObject):
  34. self._output = value
  35. else:
  36. self._output = SpiOutputObject.from_alipay_dict(value)
  37. def parse_response_content(self, response_content):
  38. response = super(KoubeiMarketingTessssssssssstQueryResponse, self).parse_response_content(response_content)
  39. if 'a' in response:
  40. self.a = response['a']
  41. if 'category' in response:
  42. self.category = response['category']
  43. if 'output' in response:
  44. self.output = response['output']