MessageCenterEvent.java 1.2 KB
package com.yoho.error.event;

import com.alibaba.fastjson.JSONObject;

/**
 * 消息中心事件
 * 
 * @author hugufei
 */
public class MessageCenterEvent extends CommonEvent {

	private static final long serialVersionUID = -7033940407683264120L;

	private String sendScene;// 场景
	private String sendSceneKey;// 场景key
	private JSONObject params;// 关键参数,需要和消息中心约定参数格式【如订单已发货场景中的订单号】
	private String uid;// uid

	public MessageCenterEvent(String sendScene, String sendSceneKey, JSONObject params, String uid) {
		super(sendScene);
		this.sendScene = sendScene;
		this.sendSceneKey = sendSceneKey;
		this.params = params;
		this.uid = uid;
	}

	public String getSendScene() {
		return sendScene;
	}

	public void setSendScene(String sendScene) {
		this.sendScene = sendScene;
	}

	public String getSendSceneKey() {
		return sendSceneKey;
	}

	public void setSendSceneKey(String sendSceneKey) {
		this.sendSceneKey = sendSceneKey;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public JSONObject getParams() {
		return params;
	}

	public void setParams(JSONObject params) {
		this.params = params;
	}

}