完成全服通知功能

This commit is contained in:
18401019693
2022-12-12 14:10:09 +08:00
parent 28add09f32
commit b5247df69b
9 changed files with 223 additions and 34 deletions

View File

@@ -174,6 +174,7 @@ public class Constants {
public static final String STAR_CHALLENGE_UPGRADE_NOTIFY = "starChallengeUpgradeNotify";//星级挑战成功
public static final String SUPER_VISION = "supervision";//超级发言警告
public static final String PK_RANK_UPDATE = "RankingRankUpdate";//PK排位赛更新数据
public static final String CUSTOM_FULL_SERVICE_NOTIFY = "customFullServiceNotify";//全服通知
//游戏socket
public static final String SOCKET_GAME_ZJH = "startGame";//炸金花

View File

@@ -0,0 +1,89 @@
package com.yunbao.common.event;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.yunbao.common.bean.BaseModel;
/**
* 全服通知
*/
public class CustomFullServiceNotifyEvent extends BaseModel {
@SerializedName("_method_")
private String method;
@SerializedName("action")
private String action;
@SerializedName("content")//内容
private String content;
@SerializedName("duration")//展示时长 单位秒
private int duration;
@SerializedName("img")//图片路径
private String img;
@SerializedName("msgtype")
private String msgtype;
@SerializedName("type")//通知类型 1 图片通知 2文字通知
private int type;
public String getMethod() {
return method;
}
public CustomFullServiceNotifyEvent setMethod(String method) {
this.method = method;
return this;
}
public String getAction() {
return action;
}
public CustomFullServiceNotifyEvent setAction(String action) {
this.action = action;
return this;
}
public String getContent() {
return content;
}
public CustomFullServiceNotifyEvent setContent(String content) {
this.content = content;
return this;
}
public int getDuration() {
return duration;
}
public CustomFullServiceNotifyEvent setDuration(int duration) {
this.duration = duration;
return this;
}
public String getImg() {
return img;
}
public CustomFullServiceNotifyEvent setImg(String img) {
this.img = img;
return this;
}
public String getMsgtype() {
return msgtype;
}
public CustomFullServiceNotifyEvent setMsgtype(String msgtype) {
this.msgtype = msgtype;
return this;
}
public int getType() {
return type;
}
public CustomFullServiceNotifyEvent setType(int type) {
this.type = type;
return this;
}
}