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

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


class AlipayOpenTestQueryResponse(AlipayResponse):

    def __init__(self):
        super(AlipayOpenTestQueryResponse, self).__init__()
        self._user_type = None

    @property
    def user_type(self):
        return self._user_type

    @user_type.setter
    def user_type(self, value):
        self._user_type = value

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