AlipayIserviceCognitiveOcrVehicleplateQueryResponse.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayIserviceCognitiveOcrVehicleplateQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayIserviceCognitiveOcrVehicleplateQueryResponse, self).__init__()
  8. self._error_content = None
  9. self._prob = None
  10. self._request_id = None
  11. self._success = None
  12. self._trace_id = None
  13. self._txt = None
  14. @property
  15. def error_content(self):
  16. return self._error_content
  17. @error_content.setter
  18. def error_content(self, value):
  19. self._error_content = value
  20. @property
  21. def prob(self):
  22. return self._prob
  23. @prob.setter
  24. def prob(self, value):
  25. self._prob = value
  26. @property
  27. def request_id(self):
  28. return self._request_id
  29. @request_id.setter
  30. def request_id(self, value):
  31. self._request_id = value
  32. @property
  33. def success(self):
  34. return self._success
  35. @success.setter
  36. def success(self, value):
  37. self._success = value
  38. @property
  39. def trace_id(self):
  40. return self._trace_id
  41. @trace_id.setter
  42. def trace_id(self, value):
  43. self._trace_id = value
  44. @property
  45. def txt(self):
  46. return self._txt
  47. @txt.setter
  48. def txt(self, value):
  49. self._txt = value
  50. def parse_response_content(self, response_content):
  51. response = super(AlipayIserviceCognitiveOcrVehicleplateQueryResponse, self).parse_response_content(response_content)
  52. if 'error_content' in response:
  53. self.error_content = response['error_content']
  54. if 'prob' in response:
  55. self.prob = response['prob']
  56. if 'request_id' in response:
  57. self.request_id = response['request_id']
  58. if 'success' in response:
  59. self.success = response['success']
  60. if 'trace_id' in response:
  61. self.trace_id = response['trace_id']
  62. if 'txt' in response:
  63. self.txt = response['txt']