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