AlipayMobilePublicFollowListResponse.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.Data import Data
  6. class AlipayMobilePublicFollowListResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayMobilePublicFollowListResponse, self).__init__()
  9. self._code = None
  10. self._count = None
  11. self._data = None
  12. self._next_alipay_user_id = None
  13. self._next_user_id = None
  14. @property
  15. def code(self):
  16. return self._code
  17. @code.setter
  18. def code(self, value):
  19. self._code = value
  20. @property
  21. def count(self):
  22. return self._count
  23. @count.setter
  24. def count(self, value):
  25. self._count = value
  26. @property
  27. def data(self):
  28. return self._data
  29. @data.setter
  30. def data(self, value):
  31. if isinstance(value, Data):
  32. self._data = value
  33. else:
  34. self._data = Data.from_alipay_dict(value)
  35. @property
  36. def next_alipay_user_id(self):
  37. return self._next_alipay_user_id
  38. @next_alipay_user_id.setter
  39. def next_alipay_user_id(self, value):
  40. self._next_alipay_user_id = value
  41. @property
  42. def next_user_id(self):
  43. return self._next_user_id
  44. @next_user_id.setter
  45. def next_user_id(self, value):
  46. self._next_user_id = value
  47. def parse_response_content(self, response_content):
  48. response = super(AlipayMobilePublicFollowListResponse, self).parse_response_content(response_content)
  49. if 'code' in response:
  50. self.code = response['code']
  51. if 'count' in response:
  52. self.count = response['count']
  53. if 'data' in response:
  54. self.data = response['data']
  55. if 'next_alipay_user_id' in response:
  56. self.next_alipay_user_id = response['next_alipay_user_id']
  57. if 'next_user_id' in response:
  58. self.next_user_id = response['next_user_id']