AlipaySocialAntforestProjectQueryResponse.py 840 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipaySocialAntforestProjectQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipaySocialAntforestProjectQueryResponse, self).__init__()
  8. self._projects = None
  9. @property
  10. def projects(self):
  11. return self._projects
  12. @projects.setter
  13. def projects(self, value):
  14. if isinstance(value, list):
  15. self._projects = list()
  16. for i in value:
  17. self._projects.append(i)
  18. def parse_response_content(self, response_content):
  19. response = super(AlipaySocialAntforestProjectQueryResponse, self).parse_response_content(response_content)
  20. if 'projects' in response:
  21. self.projects = response['projects']