AlipayUserAntarchiveFaceQueryResponse.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.ArchiveFaceInfo import ArchiveFaceInfo
  6. class AlipayUserAntarchiveFaceQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayUserAntarchiveFaceQueryResponse, self).__init__()
  9. self._archive_face_list = None
  10. self._local_usable = None
  11. self._remote_usable = None
  12. @property
  13. def archive_face_list(self):
  14. return self._archive_face_list
  15. @archive_face_list.setter
  16. def archive_face_list(self, value):
  17. if isinstance(value, list):
  18. self._archive_face_list = list()
  19. for i in value:
  20. if isinstance(i, ArchiveFaceInfo):
  21. self._archive_face_list.append(i)
  22. else:
  23. self._archive_face_list.append(ArchiveFaceInfo.from_alipay_dict(i))
  24. @property
  25. def local_usable(self):
  26. return self._local_usable
  27. @local_usable.setter
  28. def local_usable(self, value):
  29. self._local_usable = value
  30. @property
  31. def remote_usable(self):
  32. return self._remote_usable
  33. @remote_usable.setter
  34. def remote_usable(self, value):
  35. self._remote_usable = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayUserAntarchiveFaceQueryResponse, self).parse_response_content(response_content)
  38. if 'archive_face_list' in response:
  39. self.archive_face_list = response['archive_face_list']
  40. if 'local_usable' in response:
  41. self.local_usable = response['local_usable']
  42. if 'remote_usable' in response:
  43. self.remote_usable = response['remote_usable']