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