AlipayOfflineMarketMcommentQueryResponse.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayOfflineMarketMcommentQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayOfflineMarketMcommentQueryResponse, self).__init__()
  8. self._comment_id = None
  9. self._comment_status = None
  10. self._comment_time = None
  11. self._score = None
  12. @property
  13. def comment_id(self):
  14. return self._comment_id
  15. @comment_id.setter
  16. def comment_id(self, value):
  17. self._comment_id = value
  18. @property
  19. def comment_status(self):
  20. return self._comment_status
  21. @comment_status.setter
  22. def comment_status(self, value):
  23. self._comment_status = value
  24. @property
  25. def comment_time(self):
  26. return self._comment_time
  27. @comment_time.setter
  28. def comment_time(self, value):
  29. self._comment_time = value
  30. @property
  31. def score(self):
  32. return self._score
  33. @score.setter
  34. def score(self, value):
  35. self._score = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayOfflineMarketMcommentQueryResponse, self).parse_response_content(response_content)
  38. if 'comment_id' in response:
  39. self.comment_id = response['comment_id']
  40. if 'comment_status' in response:
  41. self.comment_status = response['comment_status']
  42. if 'comment_time' in response:
  43. self.comment_time = response['comment_time']
  44. if 'score' in response:
  45. self.score = response['score']