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