AlipayCommerceIotSnCreateResponse.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayCommerceIotSnCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayCommerceIotSnCreateResponse, self).__init__()
  8. self._apply_id = None
  9. self._sn_list = None
  10. @property
  11. def apply_id(self):
  12. return self._apply_id
  13. @apply_id.setter
  14. def apply_id(self, value):
  15. self._apply_id = value
  16. @property
  17. def sn_list(self):
  18. return self._sn_list
  19. @sn_list.setter
  20. def sn_list(self, value):
  21. if isinstance(value, list):
  22. self._sn_list = list()
  23. for i in value:
  24. self._sn_list.append(i)
  25. def parse_response_content(self, response_content):
  26. response = super(AlipayCommerceIotSnCreateResponse, self).parse_response_content(response_content)
  27. if 'apply_id' in response:
  28. self.apply_id = response['apply_id']
  29. if 'sn_list' in response:
  30. self.sn_list = response['sn_list']