AlipayUserAntpaasTokenidentityQueryResponse.py 1.2 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 AlipayUserAntpaasTokenidentityQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserAntpaasTokenidentityQueryResponse, self).__init__()
  8. self._ant_id = None
  9. self._ext_info = None
  10. self._user_id = None
  11. @property
  12. def ant_id(self):
  13. return self._ant_id
  14. @ant_id.setter
  15. def ant_id(self, value):
  16. self._ant_id = value
  17. @property
  18. def ext_info(self):
  19. return self._ext_info
  20. @ext_info.setter
  21. def ext_info(self, value):
  22. self._ext_info = value
  23. @property
  24. def user_id(self):
  25. return self._user_id
  26. @user_id.setter
  27. def user_id(self, value):
  28. self._user_id = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayUserAntpaasTokenidentityQueryResponse, self).parse_response_content(response_content)
  31. if 'ant_id' in response:
  32. self.ant_id = response['ant_id']
  33. if 'ext_info' in response:
  34. self.ext_info = response['ext_info']
  35. if 'user_id' in response:
  36. self.user_id = response['user_id']