AlipayEcoMycarImageUploadResponse.py 945 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayEcoMycarImageUploadResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEcoMycarImageUploadResponse, self).__init__()
  8. self._img_id = None
  9. self._img_url = None
  10. @property
  11. def img_id(self):
  12. return self._img_id
  13. @img_id.setter
  14. def img_id(self, value):
  15. self._img_id = value
  16. @property
  17. def img_url(self):
  18. return self._img_url
  19. @img_url.setter
  20. def img_url(self, value):
  21. self._img_url = value
  22. def parse_response_content(self, response_content):
  23. response = super(AlipayEcoMycarImageUploadResponse, self).parse_response_content(response_content)
  24. if 'img_id' in response:
  25. self.img_id = response['img_id']
  26. if 'img_url' in response:
  27. self.img_url = response['img_url']