AlipayOpenPublicMatchuserLabelDeleteResponse.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.ErrorMatcher import ErrorMatcher
  6. class AlipayOpenPublicMatchuserLabelDeleteResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayOpenPublicMatchuserLabelDeleteResponse, self).__init__()
  9. self._error_count = None
  10. self._error_matchers = None
  11. @property
  12. def error_count(self):
  13. return self._error_count
  14. @error_count.setter
  15. def error_count(self, value):
  16. self._error_count = value
  17. @property
  18. def error_matchers(self):
  19. return self._error_matchers
  20. @error_matchers.setter
  21. def error_matchers(self, value):
  22. if isinstance(value, list):
  23. self._error_matchers = list()
  24. for i in value:
  25. if isinstance(i, ErrorMatcher):
  26. self._error_matchers.append(i)
  27. else:
  28. self._error_matchers.append(ErrorMatcher.from_alipay_dict(i))
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayOpenPublicMatchuserLabelDeleteResponse, self).parse_response_content(response_content)
  31. if 'error_count' in response:
  32. self.error_count = response['error_count']
  33. if 'error_matchers' in response:
  34. self.error_matchers = response['error_matchers']