package com.njcn.pojo.advanced;

import java.io.Serializable;

/*
 * 消息类，后台推送给前台的数据
 * id：消息ID
 * 1-kfka暂降数据推送
 * 2-事件关联分析，推送消息给关联结果分析、暂降影响范围分析页面
 * 3-归一化事件中删除事件，推送消息给关联结果分析、暂降影响范围分析、高级分析界面
 * 4-kfka终端状态数据推送
 * body：消息体
 */
public class MessageObj implements Serializable {
	private Integer msgId;
	private String msgBody;
	private Object msgbody;

	private final static Integer RELEVANCE = 1;

	public MessageObj(Integer msgId, String msgBody) {
		super();
		this.msgId = msgId;
		this.msgBody = msgBody;
	}

	public Object getMsgbody() {
		return msgbody;
	}

	public void setMsgbody(Object msgbody) {
		this.msgbody = msgbody;
	}

	public MessageObj() {
		super();
	}

	public Integer getMsgId() {
		return msgId;
	}

	public void setMsgId(Integer msgId) {
		this.msgId = msgId;
	}

	public String getMsgBody() {
		return msgBody;
	}

	public void setMsgBody(String msgBody) {
		this.msgBody = msgBody;
	}

	@Override
	public String toString() {
		return "MessageObj [msgId=" + msgId + ", msgBody=" + msgBody + ", msgbody=" + msgbody + "]";
	}

	public Integer getRelevance() {
		return RELEVANCE;
	}
}
