package com.cooleshow.teacher.bean;

import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * 创建日期：2022/5/30 11:53
 *
 * @author Ryan
 * 类说明：
 */
public class QuerySubjectBean implements IPickerViewData {
    /*
    	"code": "",
			"createTime": "",
			"delFlag": true,
			"desc": "",
			"id": 0,
			"img": "",
			"name": "",
			"parentSubjectId": 0,
			"parentSubjectName": "",
			"subjects": [
				{
					"code": "",
					"createTime": "",
					"delFlag": true,
					"desc": "",
					"id": 0,
					"img": "",
					"name": "",
					"parentSubjectId": 0,
					"parentSubjectName": "",
					"subjects": [
						{}
					],
					"updateTime": ""
				}
			],
			"updateTime": ""
     */

    public QuerySubjectBean(String name, int id) {
        this.id = id;
        this.name = name;
    }

    public String code;
    public String createTime;
    public boolean delFlag;
    public String desc;
    public int id;
    public String img;
    public String name;
    public int parentSubjectId;
    public String parentSubjectName;
    public List<QuerySubjectBean> subjects;
    public String updateTime;

    @Override
    public String getPickerViewText() {
        return name;
    }
}
