34 lines
808 B
Java
34 lines
808 B
Java
package com.android.eventbaus;
|
|
|
|
|
|
public class MessageEvent<T> {
|
|
|
|
public static final String ACTION_UPADATE_DATA_SOURCE="com.mxq.update.appinfo";
|
|
public static final String ACTION_UPADATE_APPS_SOURCE="com.mxq.update.apps";
|
|
|
|
public static final String ACTION_UPADATE_MEDIA_STATUS="com.ik.mxq.update.media_status";
|
|
|
|
public int msgType;
|
|
public String action;
|
|
public T objectBean;
|
|
|
|
public MessageEvent(){
|
|
|
|
}
|
|
|
|
public MessageEvent(int msgType, String action, T msgBean) {
|
|
this.msgType = msgType;
|
|
this.action = action;
|
|
this.objectBean = msgBean;
|
|
}
|
|
|
|
public MessageEvent(String action, T msgBean) {
|
|
this.action = action;
|
|
this.objectBean = msgBean;
|
|
}
|
|
|
|
public MessageEvent(String action) {
|
|
this.action = action;
|
|
}
|
|
}
|