AlipayUserSafeboxConditionQueryResponse.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 AlipayUserSafeboxConditionQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserSafeboxConditionQueryResponse, self).__init__()
  8. self._emergency_offline = None
  9. self._has_agreement = None
  10. @property
  11. def emergency_offline(self):
  12. return self._emergency_offline
  13. @emergency_offline.setter
  14. def emergency_offline(self, value):
  15. self._emergency_offline = value
  16. @property
  17. def has_agreement(self):
  18. return self._has_agreement
  19. @has_agreement.setter
  20. def has_agreement(self, value):
  21. self._has_agreement = value
  22. def parse_response_content(self, response_content):
  23. response = super(AlipayUserSafeboxConditionQueryResponse, self).parse_response_content(response_content)
  24. if 'emergency_offline' in response:
  25. self.emergency_offline = response['emergency_offline']
  26. if 'has_agreement' in response:
  27. self.has_agreement = response['has_agreement']