AlipayMobilePublicQrcodeCreateResponse.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMobilePublicQrcodeCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMobilePublicQrcodeCreateResponse, self).__init__()
  8. self._code = None
  9. self._code_img = None
  10. self._expire_second = None
  11. self._msg = None
  12. @property
  13. def code(self):
  14. return self._code
  15. @code.setter
  16. def code(self, value):
  17. self._code = value
  18. @property
  19. def code_img(self):
  20. return self._code_img
  21. @code_img.setter
  22. def code_img(self, value):
  23. self._code_img = value
  24. @property
  25. def expire_second(self):
  26. return self._expire_second
  27. @expire_second.setter
  28. def expire_second(self, value):
  29. self._expire_second = value
  30. @property
  31. def msg(self):
  32. return self._msg
  33. @msg.setter
  34. def msg(self, value):
  35. self._msg = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayMobilePublicQrcodeCreateResponse, self).parse_response_content(response_content)
  38. if 'code' in response:
  39. self.code = response['code']
  40. if 'code_img' in response:
  41. self.code_img = response['code_img']
  42. if 'expire_second' in response:
  43. self.expire_second = response['expire_second']
  44. if 'msg' in response:
  45. self.msg = response['msg']