#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json

from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.RcSmartAuditResponse import RcSmartAuditResponse


class AlipayFincoreComplianceRcservcenterRcsmartQueryResponse(AlipayResponse):

    def __init__(self):
        super(AlipayFincoreComplianceRcservcenterRcsmartQueryResponse, self).__init__()
        self._rc_smart_audit_response = None

    @property
    def rc_smart_audit_response(self):
        return self._rc_smart_audit_response

    @rc_smart_audit_response.setter
    def rc_smart_audit_response(self, value):
        if isinstance(value, RcSmartAuditResponse):
            self._rc_smart_audit_response = value
        else:
            self._rc_smart_audit_response = RcSmartAuditResponse.from_alipay_dict(value)

    def parse_response_content(self, response_content):
        response = super(AlipayFincoreComplianceRcservcenterRcsmartQueryResponse, self).parse_response_content(response_content)
        if 'rc_smart_audit_response' in response:
            self.rc_smart_audit_response = response['rc_smart_audit_response']
