AlipayMobileStdPublicFollowListResponse.py 1.7 KB

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