123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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;
- }
- }
|