AliosOpenAutoInfoQueryResponse.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AliosOpenAutoInfoQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AliosOpenAutoInfoQueryResponse, self).__init__()
  8. self._engine_no = None
  9. self._license_no = None
  10. self._vehicle_type = None
  11. self._vin = None
  12. @property
  13. def engine_no(self):
  14. return self._engine_no
  15. @engine_no.setter
  16. def engine_no(self, value):
  17. self._engine_no = value
  18. @property
  19. def license_no(self):
  20. return self._license_no
  21. @license_no.setter
  22. def license_no(self, value):
  23. self._license_no = value
  24. @property
  25. def vehicle_type(self):
  26. return self._vehicle_type
  27. @vehicle_type.setter
  28. def vehicle_type(self, value):
  29. self._vehicle_type = value
  30. @property
  31. def vin(self):
  32. return self._vin
  33. @vin.setter
  34. def vin(self, value):
  35. self._vin = value
  36. def parse_response_content(self, response_content):
  37. response = super(AliosOpenAutoInfoQueryResponse, self).parse_response_content(response_content)
  38. if 'engine_no' in response:
  39. self.engine_no = response['engine_no']
  40. if 'license_no' in response:
  41. self.license_no = response['license_no']
  42. if 'vehicle_type' in response:
  43. self.vehicle_type = response['vehicle_type']
  44. if 'vin' in response:
  45. self.vin = response['vin']