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