AlipayMobilePublicMessageMatcherSendResponse.py 1.5 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 AlipayMobilePublicMessageMatcherSendResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMobilePublicMessageMatcherSendResponse, self).__init__()
  8. self._code = None
  9. self._msg = None
  10. self._to_alipay_user_id = None
  11. self._to_user_id = 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 msg(self):
  20. return self._msg
  21. @msg.setter
  22. def msg(self, value):
  23. self._msg = value
  24. @property
  25. def to_alipay_user_id(self):
  26. return self._to_alipay_user_id
  27. @to_alipay_user_id.setter
  28. def to_alipay_user_id(self, value):
  29. self._to_alipay_user_id = value
  30. @property
  31. def to_user_id(self):
  32. return self._to_user_id
  33. @to_user_id.setter
  34. def to_user_id(self, value):
  35. self._to_user_id = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayMobilePublicMessageMatcherSendResponse, self).parse_response_content(response_content)
  38. if 'code' in response:
  39. self.code = response['code']
  40. if 'msg' in response:
  41. self.msg = response['msg']
  42. if 'to_alipay_user_id' in response:
  43. self.to_alipay_user_id = response['to_alipay_user_id']
  44. if 'to_user_id' in response:
  45. self.to_user_id = response['to_user_id']