AlipayMobilePublicGisGetResponse.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMobilePublicGisGetResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMobilePublicGisGetResponse, self).__init__()
  8. self._accuracy = None
  9. self._city = None
  10. self._code = None
  11. self._latitude = None
  12. self._longitude = None
  13. self._msg = None
  14. self._province = None
  15. @property
  16. def accuracy(self):
  17. return self._accuracy
  18. @accuracy.setter
  19. def accuracy(self, value):
  20. self._accuracy = value
  21. @property
  22. def city(self):
  23. return self._city
  24. @city.setter
  25. def city(self, value):
  26. self._city = value
  27. @property
  28. def code(self):
  29. return self._code
  30. @code.setter
  31. def code(self, value):
  32. self._code = value
  33. @property
  34. def latitude(self):
  35. return self._latitude
  36. @latitude.setter
  37. def latitude(self, value):
  38. self._latitude = value
  39. @property
  40. def longitude(self):
  41. return self._longitude
  42. @longitude.setter
  43. def longitude(self, value):
  44. self._longitude = value
  45. @property
  46. def msg(self):
  47. return self._msg
  48. @msg.setter
  49. def msg(self, value):
  50. self._msg = value
  51. @property
  52. def province(self):
  53. return self._province
  54. @province.setter
  55. def province(self, value):
  56. self._province = value
  57. def parse_response_content(self, response_content):
  58. response = super(AlipayMobilePublicGisGetResponse, self).parse_response_content(response_content)
  59. if 'accuracy' in response:
  60. self.accuracy = response['accuracy']
  61. if 'city' in response:
  62. self.city = response['city']
  63. if 'code' in response:
  64. self.code = response['code']
  65. if 'latitude' in response:
  66. self.latitude = response['latitude']
  67. if 'longitude' in response:
  68. self.longitude = response['longitude']
  69. if 'msg' in response:
  70. self.msg = response['msg']
  71. if 'province' in response:
  72. self.province = response['province']