KoubeiAdvertCommissionChannelBatchqueryResponse.py 1.8 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.KbAdvertChannelResponse import KbAdvertChannelResponse
  6. class KoubeiAdvertCommissionChannelBatchqueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(KoubeiAdvertCommissionChannelBatchqueryResponse, self).__init__()
  9. self._data = None
  10. self._page_index = None
  11. self._page_size = None
  12. self._total_count = None
  13. @property
  14. def data(self):
  15. return self._data
  16. @data.setter
  17. def data(self, value):
  18. if isinstance(value, KbAdvertChannelResponse):
  19. self._data = value
  20. else:
  21. self._data = KbAdvertChannelResponse.from_alipay_dict(value)
  22. @property
  23. def page_index(self):
  24. return self._page_index
  25. @page_index.setter
  26. def page_index(self, value):
  27. self._page_index = value
  28. @property
  29. def page_size(self):
  30. return self._page_size
  31. @page_size.setter
  32. def page_size(self, value):
  33. self._page_size = value
  34. @property
  35. def total_count(self):
  36. return self._total_count
  37. @total_count.setter
  38. def total_count(self, value):
  39. self._total_count = value
  40. def parse_response_content(self, response_content):
  41. response = super(KoubeiAdvertCommissionChannelBatchqueryResponse, self).parse_response_content(response_content)
  42. if 'data' in response:
  43. self.data = response['data']
  44. if 'page_index' in response:
  45. self.page_index = response['page_index']
  46. if 'page_size' in response:
  47. self.page_size = response['page_size']
  48. if 'total_count' in response:
  49. self.total_count = response['total_count']