AlipayEcoFilePathQueryResponse.py 972 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 AlipayEcoFilePathQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEcoFilePathQueryResponse, self).__init__()
  8. self._file_id = None
  9. self._upload_url = None
  10. @property
  11. def file_id(self):
  12. return self._file_id
  13. @file_id.setter
  14. def file_id(self, value):
  15. self._file_id = value
  16. @property
  17. def upload_url(self):
  18. return self._upload_url
  19. @upload_url.setter
  20. def upload_url(self, value):
  21. self._upload_url = value
  22. def parse_response_content(self, response_content):
  23. response = super(AlipayEcoFilePathQueryResponse, self).parse_response_content(response_content)
  24. if 'file_id' in response:
  25. self.file_id = response['file_id']
  26. if 'upload_url' in response:
  27. self.upload_url = response['upload_url']