AlipayIserviceCognitiveOcrImageclassifyQueryResponse.py 781 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayIserviceCognitiveOcrImageclassifyQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayIserviceCognitiveOcrImageclassifyQueryResponse, self).__init__()
  8. self._image_type = None
  9. @property
  10. def image_type(self):
  11. return self._image_type
  12. @image_type.setter
  13. def image_type(self, value):
  14. self._image_type = value
  15. def parse_response_content(self, response_content):
  16. response = super(AlipayIserviceCognitiveOcrImageclassifyQueryResponse, self).parse_response_content(response_content)
  17. if 'image_type' in response:
  18. self.image_type = response['image_type']