AlipayMobilePublicLabelQueryResponse.py 1.2 KB

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