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