AlipayCommerceIotDeviceLocationQueryResponse.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 AlipayCommerceIotDeviceLocationQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayCommerceIotDeviceLocationQueryResponse, self).__init__()
  8. self._latitude = None
  9. self._longitude = None
  10. self._time = None
  11. @property
  12. def latitude(self):
  13. return self._latitude
  14. @latitude.setter
  15. def latitude(self, value):
  16. self._latitude = value
  17. @property
  18. def longitude(self):
  19. return self._longitude
  20. @longitude.setter
  21. def longitude(self, value):
  22. self._longitude = value
  23. @property
  24. def time(self):
  25. return self._time
  26. @time.setter
  27. def time(self, value):
  28. self._time = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayCommerceIotDeviceLocationQueryResponse, self).parse_response_content(response_content)
  31. if 'latitude' in response:
  32. self.latitude = response['latitude']
  33. if 'longitude' in response:
  34. self.longitude = response['longitude']
  35. if 'time' in response:
  36. self.time = response['time']