AlipayUserGroupshoppingNewbieQueryResponse.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayUserGroupshoppingNewbieQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserGroupshoppingNewbieQueryResponse, self).__init__()
  8. self._access = None
  9. self._message = None
  10. self._reason = None
  11. self._user_id_list = None
  12. @property
  13. def access(self):
  14. return self._access
  15. @access.setter
  16. def access(self, value):
  17. self._access = value
  18. @property
  19. def message(self):
  20. return self._message
  21. @message.setter
  22. def message(self, value):
  23. self._message = value
  24. @property
  25. def reason(self):
  26. return self._reason
  27. @reason.setter
  28. def reason(self, value):
  29. self._reason = value
  30. @property
  31. def user_id_list(self):
  32. return self._user_id_list
  33. @user_id_list.setter
  34. def user_id_list(self, value):
  35. if isinstance(value, list):
  36. self._user_id_list = list()
  37. for i in value:
  38. self._user_id_list.append(i)
  39. def parse_response_content(self, response_content):
  40. response = super(AlipayUserGroupshoppingNewbieQueryResponse, self).parse_response_content(response_content)
  41. if 'access' in response:
  42. self.access = response['access']
  43. if 'message' in response:
  44. self.message = response['message']
  45. if 'reason' in response:
  46. self.reason = response['reason']
  47. if 'user_id_list' in response:
  48. self.user_id_list = response['user_id_list']