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