AlipaySocialAntforestPlantApplyResponse.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 AlipaySocialAntforestPlantApplyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipaySocialAntforestPlantApplyResponse, self).__init__()
  8. self._biz_time = None
  9. self._certificate_id = None
  10. self._current_energy = None
  11. @property
  12. def biz_time(self):
  13. return self._biz_time
  14. @biz_time.setter
  15. def biz_time(self, value):
  16. self._biz_time = value
  17. @property
  18. def certificate_id(self):
  19. return self._certificate_id
  20. @certificate_id.setter
  21. def certificate_id(self, value):
  22. self._certificate_id = value
  23. @property
  24. def current_energy(self):
  25. return self._current_energy
  26. @current_energy.setter
  27. def current_energy(self, value):
  28. self._current_energy = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipaySocialAntforestPlantApplyResponse, self).parse_response_content(response_content)
  31. if 'biz_time' in response:
  32. self.biz_time = response['biz_time']
  33. if 'certificate_id' in response:
  34. self.certificate_id = response['certificate_id']
  35. if 'current_energy' in response:
  36. self.current_energy = response['current_energy']