AlipaySocialAntforestPlantConsultResponse.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipaySocialAntforestPlantConsultResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipaySocialAntforestPlantConsultResponse, self).__init__()
  8. self._current_energy = None
  9. self._project_alliable = None
  10. @property
  11. def current_energy(self):
  12. return self._current_energy
  13. @current_energy.setter
  14. def current_energy(self, value):
  15. self._current_energy = value
  16. @property
  17. def project_alliable(self):
  18. return self._project_alliable
  19. @project_alliable.setter
  20. def project_alliable(self, value):
  21. self._project_alliable = value
  22. def parse_response_content(self, response_content):
  23. response = super(AlipaySocialAntforestPlantConsultResponse, self).parse_response_content(response_content)
  24. if 'current_energy' in response:
  25. self.current_energy = response['current_energy']
  26. if 'project_alliable' in response:
  27. self.project_alliable = response['project_alliable']