1234567891011121314151617181920212223242526272829303132 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.response.AlipayResponse import AlipayResponse
- from alipay.aop.api.domain.Topic import Topic
- class AlipayOpenPublicTopicBatchqueryResponse(AlipayResponse):
- def __init__(self):
- super(AlipayOpenPublicTopicBatchqueryResponse, self).__init__()
- self._topic_list = None
- @property
- def topic_list(self):
- return self._topic_list
- @topic_list.setter
- def topic_list(self, value):
- if isinstance(value, list):
- self._topic_list = list()
- for i in value:
- if isinstance(i, Topic):
- self._topic_list.append(i)
- else:
- self._topic_list.append(Topic.from_alipay_dict(i))
- def parse_response_content(self, response_content):
- response = super(AlipayOpenPublicTopicBatchqueryResponse, self).parse_response_content(response_content)
- if 'topic_list' in response:
- self.topic_list = response['topic_list']
|