ZolozAuthenticationCustomerAnonymousfacesearchMatchResponse.py 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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.FaceSearchUserInfo import FaceSearchUserInfo
  6. from alipay.aop.api.domain.FaceSearchUserInfo import FaceSearchUserInfo
  7. from alipay.aop.api.domain.FaceSearchAnonymousUserInfo import FaceSearchAnonymousUserInfo
  8. class ZolozAuthenticationCustomerAnonymousfacesearchMatchResponse(AlipayResponse):
  9. def __init__(self):
  10. super(ZolozAuthenticationCustomerAnonymousfacesearchMatchResponse, self).__init__()
  11. self._candidatelist = None
  12. self._foundface = None
  13. self._retcodesub = None
  14. self._retmessagesub = None
  15. self._userinfolist = None
  16. @property
  17. def candidatelist(self):
  18. return self._candidatelist
  19. @candidatelist.setter
  20. def candidatelist(self, value):
  21. if isinstance(value, list):
  22. self._candidatelist = list()
  23. for i in value:
  24. if isinstance(i, FaceSearchUserInfo):
  25. self._candidatelist.append(i)
  26. else:
  27. self._candidatelist.append(FaceSearchUserInfo.from_alipay_dict(i))
  28. @property
  29. def foundface(self):
  30. return self._foundface
  31. @foundface.setter
  32. def foundface(self, value):
  33. if isinstance(value, FaceSearchUserInfo):
  34. self._foundface = value
  35. else:
  36. self._foundface = FaceSearchUserInfo.from_alipay_dict(value)
  37. @property
  38. def retcodesub(self):
  39. return self._retcodesub
  40. @retcodesub.setter
  41. def retcodesub(self, value):
  42. self._retcodesub = value
  43. @property
  44. def retmessagesub(self):
  45. return self._retmessagesub
  46. @retmessagesub.setter
  47. def retmessagesub(self, value):
  48. self._retmessagesub = value
  49. @property
  50. def userinfolist(self):
  51. return self._userinfolist
  52. @userinfolist.setter
  53. def userinfolist(self, value):
  54. if isinstance(value, list):
  55. self._userinfolist = list()
  56. for i in value:
  57. if isinstance(i, FaceSearchAnonymousUserInfo):
  58. self._userinfolist.append(i)
  59. else:
  60. self._userinfolist.append(FaceSearchAnonymousUserInfo.from_alipay_dict(i))
  61. def parse_response_content(self, response_content):
  62. response = super(ZolozAuthenticationCustomerAnonymousfacesearchMatchResponse, self).parse_response_content(response_content)
  63. if 'candidatelist' in response:
  64. self.candidatelist = response['candidatelist']
  65. if 'foundface' in response:
  66. self.foundface = response['foundface']
  67. if 'retcodesub' in response:
  68. self.retcodesub = response['retcodesub']
  69. if 'retmessagesub' in response:
  70. self.retmessagesub = response['retmessagesub']
  71. if 'userinfolist' in response:
  72. self.userinfolist = response['userinfolist']