AlipayMsaasMediarecogAftsCarIdentifyResponse.py 1.7 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 AlipayMsaasMediarecogAftsCarIdentifyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMsaasMediarecogAftsCarIdentifyResponse, self).__init__()
  8. self._cheat_probability = None
  9. self._cheat_type = None
  10. self._ocr_kilometres = None
  11. self._ocr_probability = None
  12. @property
  13. def cheat_probability(self):
  14. return self._cheat_probability
  15. @cheat_probability.setter
  16. def cheat_probability(self, value):
  17. self._cheat_probability = value
  18. @property
  19. def cheat_type(self):
  20. return self._cheat_type
  21. @cheat_type.setter
  22. def cheat_type(self, value):
  23. self._cheat_type = value
  24. @property
  25. def ocr_kilometres(self):
  26. return self._ocr_kilometres
  27. @ocr_kilometres.setter
  28. def ocr_kilometres(self, value):
  29. self._ocr_kilometres = value
  30. @property
  31. def ocr_probability(self):
  32. return self._ocr_probability
  33. @ocr_probability.setter
  34. def ocr_probability(self, value):
  35. self._ocr_probability = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayMsaasMediarecogAftsCarIdentifyResponse, self).parse_response_content(response_content)
  38. if 'cheat_probability' in response:
  39. self.cheat_probability = response['cheat_probability']
  40. if 'cheat_type' in response:
  41. self.cheat_type = response['cheat_type']
  42. if 'ocr_kilometres' in response:
  43. self.ocr_kilometres = response['ocr_kilometres']
  44. if 'ocr_probability' in response:
  45. self.ocr_probability = response['ocr_probability']