AlipayCommerceIotWifiStatusQueryResponse.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayCommerceIotWifiStatusQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayCommerceIotWifiStatusQueryResponse, self).__init__()
  8. self._cur_ssid = None
  9. self._ssid_list = None
  10. self._wifi_type = None
  11. @property
  12. def cur_ssid(self):
  13. return self._cur_ssid
  14. @cur_ssid.setter
  15. def cur_ssid(self, value):
  16. self._cur_ssid = value
  17. @property
  18. def ssid_list(self):
  19. return self._ssid_list
  20. @ssid_list.setter
  21. def ssid_list(self, value):
  22. if isinstance(value, list):
  23. self._ssid_list = list()
  24. for i in value:
  25. self._ssid_list.append(i)
  26. @property
  27. def wifi_type(self):
  28. return self._wifi_type
  29. @wifi_type.setter
  30. def wifi_type(self, value):
  31. self._wifi_type = value
  32. def parse_response_content(self, response_content):
  33. response = super(AlipayCommerceIotWifiStatusQueryResponse, self).parse_response_content(response_content)
  34. if 'cur_ssid' in response:
  35. self.cur_ssid = response['cur_ssid']
  36. if 'ssid_list' in response:
  37. self.ssid_list = response['ssid_list']
  38. if 'wifi_type' in response:
  39. self.wifi_type = response['wifi_type']