AlipayMobilePublicContactFollowListResponse.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMobilePublicContactFollowListResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMobilePublicContactFollowListResponse, self).__init__()
  8. self._code = None
  9. self._contact_follow_list = None
  10. @property
  11. def code(self):
  12. return self._code
  13. @code.setter
  14. def code(self, value):
  15. self._code = value
  16. @property
  17. def contact_follow_list(self):
  18. return self._contact_follow_list
  19. @contact_follow_list.setter
  20. def contact_follow_list(self, value):
  21. if isinstance(value, list):
  22. self._contact_follow_list = list()
  23. for i in value:
  24. self._contact_follow_list.append(i)
  25. def parse_response_content(self, response_content):
  26. response = super(AlipayMobilePublicContactFollowListResponse, self).parse_response_content(response_content)
  27. if 'code' in response:
  28. self.code = response['code']
  29. if 'contact_follow_list' in response:
  30. self.contact_follow_list = response['contact_follow_list']