package org.jeecg.modules.nettyServer.domain;

import com.alibaba.fastjson.JSONObject;

public class SocketBody {

    //系统消息
    public static int type_system = 1;
    //多井预警列表信息
    public static int type_moreWell = 2;
    //单井数据信息
    public static int type_oneWellData = 3;
    //单井报警信息
    public static int type_oneWellWarningData = 4;
    //多井报警信息
    public static int type_moreWellWarningData = 5;


    public static int type_nowWellData = 99;


    public int type;

    public Object data;

    public SocketBody(int type, Object data){
        this.type = type;
        this.data = data;
    }

    public String toJson(){
        return JSONObject.toJSONString(this);
    }

}
