KoubeiContentContentstatusModifyResponse.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiContentContentstatusModifyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiContentContentstatusModifyResponse, self).__init__()
  8. self._data = None
  9. self._trace_id = None
  10. @property
  11. def data(self):
  12. return self._data
  13. @data.setter
  14. def data(self, value):
  15. if isinstance(value, list):
  16. self._data = list()
  17. for i in value:
  18. self._data.append(i)
  19. @property
  20. def trace_id(self):
  21. return self._trace_id
  22. @trace_id.setter
  23. def trace_id(self, value):
  24. self._trace_id = value
  25. def parse_response_content(self, response_content):
  26. response = super(KoubeiContentContentstatusModifyResponse, self).parse_response_content(response_content)
  27. if 'data' in response:
  28. self.data = response['data']
  29. if 'trace_id' in response:
  30. self.trace_id = response['trace_id']