pdlivexp/live/src/main/java/com/yunbao/live/bean/LiveChatBean.java

435 lines
11 KiB
Java

package com.yunbao.live.bean;
import com.alibaba.fastjson.annotation.JSONField;
import com.google.gson.annotations.SerializedName;
import com.yunbao.common.bean.AiAutomaticSpeechModel;
import com.yunbao.common.bean.MsgModel;
/**
* Created by cxf on 2017/8/22.
*/
public class LiveChatBean {
public final int NORMAL = 0;
public static final int SYSTEM = 1;
public static final int SYSTEM2 = 111;
public static final int GIFT = 2;
public static final int ENTER_ROOM = 3;
public static final int LIGHT = 4;
public static final int RED_PACK = 5;
public static final int RECOMMEND_CARD_NOTIFY = 10;
public static final int AI_AUTOMATIC_SPEECH = 101;
public static final int STAR_CHALLENGE_UPGRADE_NOTIFY = 105;
public static final int LUCKY_ANGEL = 106;//幸运天使
public static final int LUCKY_100_CHECK = 107;//幸运天使
public static final int SYSTEM3_COLOR = 108;//带颜色的系统消息,格式 XXXX<font color='#FF8E43'>YYY</font>
public static final int XYD_COMPLETE = 207;//心愿单完成通知
public static final int WISH_LIST_PROGRESS = 307;//心愿单进度通知
public static final int BLIND_BOX = 409;//盲盒礼物消息
public static final int TYPE_TO_USER_MSG=500;//指定信息
private String id;
private String userNiceName;
private int level;
private String content;
private int heart;
private int type; //0是普通消息 1是系统消息 2是礼物消息 6活动消息
private String liangName;
private int vipType;
private int guardType;
private boolean anchor;
private boolean manager;
private String medalNmae;//粉丝徽章名字
private String medalLevelImageUrl;//粉丝徽章等级
private String bubble;//气泡
private String medal;//勋章
private String medal_new;
private String medal_honor;//荣誉勋章
private String hot_num;
private String good_nub;
private String anchorName;
private String prankIcon;
private String hot_card;
private MsgModel msgModel = new MsgModel();//自定义消息体
private String giftName;
private String toUid;
public String getGiftName() {
return giftName;
}
public LiveChatBean setGiftName(String giftName) {
this.giftName = giftName;
return this;
}
public String getToUid() {
return toUid;
}
public void setToUid(String toUid) {
this.toUid = toUid;
}
private AiAutomaticSpeechModel aiAutomaticSpeechModel = new AiAutomaticSpeechModel();//机器人消息体
public AiAutomaticSpeechModel getAiAutomaticSpeechModel() {
return aiAutomaticSpeechModel;
}
public LiveChatBean setAiAutomaticSpeechModel(AiAutomaticSpeechModel aiAutomaticSpeechModel) {
this.aiAutomaticSpeechModel = aiAutomaticSpeechModel;
return this;
}
@SerializedName("noble_id")
private String nobleId = "";
@SerializedName("noble_icon")
private String nobleIcon = "";
@SerializedName("bubbleSrc")
private String bubbleSrc = "";
//超皇昵称渐变色上
@SerializedName("startColor")
private String startColor = "";
//超皇昵称渐变色下
@SerializedName("endColor")
private String endColor = "";
//超皇字体颜色
@SerializedName("contentColor")
private String contentColor = "";
//@名字
@SerializedName("atUserName")
private String atUserName = "";
//@ID
@SerializedName("atUserID")
private String atUserID = "";
//用户是否关注主播
private boolean isAttention = false;
public boolean isAttention() {
return isAttention;
}
public LiveChatBean setAttention(boolean attention) {
isAttention = attention;
return this;
}
public String getAtUserName() {
return atUserName;
}
public LiveChatBean setAtUserName(String atUserName) {
this.atUserName = atUserName;
return this;
}
public String getAtUserID() {
return atUserID;
}
public LiveChatBean setAtUserID(String atUserID) {
this.atUserID = atUserID;
return this;
}
public String getStartColor() {
return startColor;
}
public LiveChatBean setStartColor(String startColor) {
this.startColor = startColor;
return this;
}
public String getEndColor() {
return endColor;
}
public LiveChatBean setEndColor(String endColor) {
this.endColor = endColor;
return this;
}
public String getContentColor() {
return contentColor;
}
public LiveChatBean setContentColor(String contentColor) {
this.contentColor = contentColor;
return this;
}
public String getNobleId() {
return nobleId;
}
public LiveChatBean setNobleId(String nobleId) {
this.nobleId = nobleId;
return this;
}
public String getNobleIcon() {
return nobleIcon;
}
public LiveChatBean setNobleIcon(String nobleIcon) {
this.nobleIcon = nobleIcon;
return this;
}
public String getBubbleSrc() {
return bubbleSrc;
}
public LiveChatBean setBubbleSrc(String bubbleSrc) {
this.bubbleSrc = bubbleSrc;
return this;
}
public MsgModel getMsgModel() {
return msgModel;
}
public LiveChatBean setMsgModel(MsgModel msgModel) {
this.msgModel = msgModel;
return this;
}
public String getHot_card() {
return hot_card;
}
public void setHot_card(String hot_card) {
this.hot_card = hot_card;
}
public String getMedal_new() {
return medal_new;
}
public void setMedal_new(String medal_new) {
this.medal_new = medal_new;
}
public String getPrankIcon() {
return prankIcon;
}
public void setPrankIcon(String prankIcon) {
this.prankIcon = prankIcon;
}
public String getAnchorName() {
return anchorName;
}
public void setAnchorName(String anchorName) {
this.anchorName = anchorName;
}
public String getGood_nub() {
return good_nub;
}
public void setGood_nub(String good_nub) {
this.good_nub = good_nub;
}
public String getHot_num() {
return hot_num;
}
public void setHot_num(String hot_num) {
this.hot_num = hot_num;
}
public String getMedal_honor() {
return medal_honor;
}
public void setMedal_honor(String medal_honor) {
this.medal_honor = medal_honor;
}
public String getBubble() {
return bubble;
}
public void setBubble(String bubble) {
this.bubble = bubble;
}
public String getMedal() {
return medal;
}
public void setMedal(String medal) {
this.medal = medal;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@JSONField(name = "user_nicename")
public String getUserNiceName() {
return userNiceName;
}
@JSONField(name = "user_nicename")
public void setUserNiceName(String userNiceName) {
this.userNiceName = userNiceName;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public int getHeart() {
return heart;
}
public void setHeart(int heart) {
this.heart = heart;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
@JSONField(name = "liangname")
public String getLiangName() {
return liangName;
}
@JSONField(name = "liangname")
public void setLiangName(String liangName) {
if (!"0".equals(liangName)) {
this.liangName = liangName;
}
}
public boolean isAnchor() {
return anchor;
}
public void setAnchor(boolean anchor) {
this.anchor = anchor;
}
@JSONField(name = "vip_type")
public int getVipType() {
return vipType;
}
@JSONField(name = "vip_type")
public void setVipType(int vipType) {
this.vipType = vipType;
}
public boolean isManager() {
return manager;
}
public void setManager(boolean manager) {
this.manager = manager;
}
@JSONField(name = "guard_type")
public int getGuardType() {
return guardType;
}
@JSONField(name = "guard_type")
public void setGuardType(int guardType) {
this.guardType = guardType;
}
@JSONField(name = "medal_name")
public String getMedalNmae() {
return medalNmae;
}
@JSONField(name = "medal_name")
public void setMedalNmae(String medalNmae) {
this.medalNmae = medalNmae;
}
@JSONField(name = "medal_level")
public String getMedalLevelImageUrl() {
return medalLevelImageUrl;
}
@JSONField(name = "medal_level")
public void setMedalLevelImageUrl(String medalLevelImageUrl) {
this.medalLevelImageUrl = medalLevelImageUrl;
}
@Override
public String toString() {
return "LiveChatBean{" +
"NORMAL=" + NORMAL +
", id='" + id + '\'' +
", userNiceName='" + userNiceName + '\'' +
", level=" + level +
", content='" + content + '\'' +
", heart=" + heart +
", type=" + type +
", liangName='" + liangName + '\'' +
", vipType=" + vipType +
", guardType=" + guardType +
", anchor=" + anchor +
", manager=" + manager +
", medalNmae='" + medalNmae + '\'' +
", medalLevelImageUrl='" + medalLevelImageUrl + '\'' +
", bubble='" + bubble + '\'' +
", medal='" + medal + '\'' +
", medal_new='" + medal_new + '\'' +
", medal_honor='" + medal_honor + '\'' +
", hot_num='" + hot_num + '\'' +
", good_nub='" + good_nub + '\'' +
", anchorName='" + anchorName + '\'' +
", prankIcon='" + prankIcon + '\'' +
", hot_card='" + hot_card + '\'' +
", msgModel=" + msgModel +
", giftName='" + giftName + '\'' +
", aiAutomaticSpeechModel=" + aiAutomaticSpeechModel +
", nobleId='" + nobleId + '\'' +
", nobleIcon='" + nobleIcon + '\'' +
", bubbleSrc='" + bubbleSrc + '\'' +
", startColor='" + startColor + '\'' +
", endColor='" + endColor + '\'' +
", contentColor='" + contentColor + '\'' +
", atUserName='" + atUserName + '\'' +
", atUserID='" + atUserID + '\'' +
", isAttention=" + isAttention +
'}';
}
}