AlipayUserStepcounterQueryResponse.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayUserStepcounterQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserStepcounterQueryResponse, self).__init__()
  8. self._count = None
  9. self._count_date = None
  10. self._time_zone = None
  11. @property
  12. def count(self):
  13. return self._count
  14. @count.setter
  15. def count(self, value):
  16. self._count = value
  17. @property
  18. def count_date(self):
  19. return self._count_date
  20. @count_date.setter
  21. def count_date(self, value):
  22. self._count_date = value
  23. @property
  24. def time_zone(self):
  25. return self._time_zone
  26. @time_zone.setter
  27. def time_zone(self, value):
  28. self._time_zone = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayUserStepcounterQueryResponse, self).parse_response_content(response_content)
  31. if 'count' in response:
  32. self.count = response['count']
  33. if 'count_date' in response:
  34. self.count_date = response['count_date']
  35. if 'time_zone' in response:
  36. self.time_zone = response['time_zone']