AlipayEcoCplifeCommunityCreateResponse.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayEcoCplifeCommunityCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEcoCplifeCommunityCreateResponse, self).__init__()
  8. self._community_id = None
  9. self._next_action = None
  10. self._status = None
  11. @property
  12. def community_id(self):
  13. return self._community_id
  14. @community_id.setter
  15. def community_id(self, value):
  16. self._community_id = value
  17. @property
  18. def next_action(self):
  19. return self._next_action
  20. @next_action.setter
  21. def next_action(self, value):
  22. self._next_action = value
  23. @property
  24. def status(self):
  25. return self._status
  26. @status.setter
  27. def status(self, value):
  28. self._status = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayEcoCplifeCommunityCreateResponse, self).parse_response_content(response_content)
  31. if 'community_id' in response:
  32. self.community_id = response['community_id']
  33. if 'next_action' in response:
  34. self.next_action = response['next_action']
  35. if 'status' in response:
  36. self.status = response['status']