package com.jtgh.yjpt.common; import java.io.Serializable; /** * 消息类 * * @author masn */ public class Msg implements Serializable { private static final long serialVersionUID = -5952922554927101091L; public String msgId; public String bundle; public Object[] msgParams; public int msgLevel; /** * * @param msgId * @param bundle * @param msgLevel * @param msgParams */ public Msg(String msgId, String bundle, int msgLevel, Object[] msgParams) { this.msgId = msgId; this.bundle = bundle; this.msgLevel = msgLevel; this.msgParams = msgParams; } /** * no para * * @param msgId * @param bundle * @param msgLevel */ public Msg(String msgId, String bundle, int msgLevel) { this.msgId = msgId; this.bundle = bundle; this.msgLevel = msgLevel; } /** * msgLevel default MSG_INFO * * @param msgId * @param bundle * @param msgParams */ public Msg(String msgId, String bundle, Object[] msgParams) { this.msgId = msgId; this.bundle = bundle; this.msgLevel = MsgLevel.INFO; this.msgParams = msgParams; } /** * no para * * @param msgId * @param bundle */ public Msg(String msgId, String bundle) { this.msgId = msgId; this.bundle = bundle; this.msgLevel = MsgLevel.INFO; } public String getMsgId() { return msgId; } public Object[] getMsgParams() { return msgParams; } public String getBundle() { return bundle; } public int getMsgLevel() { return msgLevel; } }