ZhimaAuthInfoAuthqueryResponse.py 972 B

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