AlipayUserMemberGcwtaskQueryResponse.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.SquareDanceTaskInfo import SquareDanceTaskInfo
  6. class AlipayUserMemberGcwtaskQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayUserMemberGcwtaskQueryResponse, self).__init__()
  9. self._result_code = None
  10. self._square_dance_task_info_list = None
  11. self._success = None
  12. @property
  13. def result_code(self):
  14. return self._result_code
  15. @result_code.setter
  16. def result_code(self, value):
  17. self._result_code = value
  18. @property
  19. def square_dance_task_info_list(self):
  20. return self._square_dance_task_info_list
  21. @square_dance_task_info_list.setter
  22. def square_dance_task_info_list(self, value):
  23. if isinstance(value, list):
  24. self._square_dance_task_info_list = list()
  25. for i in value:
  26. if isinstance(i, SquareDanceTaskInfo):
  27. self._square_dance_task_info_list.append(i)
  28. else:
  29. self._square_dance_task_info_list.append(SquareDanceTaskInfo.from_alipay_dict(i))
  30. @property
  31. def success(self):
  32. return self._success
  33. @success.setter
  34. def success(self, value):
  35. self._success = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayUserMemberGcwtaskQueryResponse, self).parse_response_content(response_content)
  38. if 'result_code' in response:
  39. self.result_code = response['result_code']
  40. if 'square_dance_task_info_list' in response:
  41. self.square_dance_task_info_list = response['square_dance_task_info_list']
  42. if 'success' in response:
  43. self.success = response['success']