560 lines
15 KiB
Java
560 lines
15 KiB
Java
package com.yunbao.common.bean;
|
||
|
||
import android.os.Parcel;
|
||
import android.os.Parcelable;
|
||
import android.text.TextUtils;
|
||
|
||
import com.alibaba.fastjson.annotation.JSONField;
|
||
import com.google.gson.annotations.SerializedName;
|
||
|
||
import java.util.ArrayList;
|
||
import java.util.List;
|
||
import java.util.Map;
|
||
|
||
/**
|
||
* Created by cxf on 2017/8/9.
|
||
*/
|
||
|
||
public class LiveBean implements Parcelable {
|
||
private String uid;
|
||
private String avatar;
|
||
private String avatarThumb;
|
||
private String userNiceName;
|
||
private String title;
|
||
private String city;
|
||
private String stream;
|
||
private String pull;
|
||
private String thumb;
|
||
private String nums;
|
||
private int sex;
|
||
private String distance;
|
||
private int levelAnchor;
|
||
private int type;
|
||
private String typeVal;
|
||
private String goodNum;//主播的靓号
|
||
private int gameAction;//正在进行的游戏的标识
|
||
private String game;
|
||
private String islive;//是否直播中
|
||
private String isTop;//是否显示排行榜
|
||
private String pk_avatar_thumb;//pk对方的头像
|
||
private int landscape;//1h屏2s屏
|
||
private String hot_num;//热调
|
||
private String content_pic_size_one;//小
|
||
private String content_pic_size_two;//中
|
||
private String content_pic_size_three;//大
|
||
private String is_week;
|
||
private String img;
|
||
private String url;
|
||
private String drpk_status;
|
||
private int is_rong;
|
||
//是否關注 1,關注 2,未關注
|
||
private String isattention = "";
|
||
private String recommendCardtype = "";
|
||
private String recommendCardIconSizeTwo = "";
|
||
private String recommendCardIconSizeThree = "";
|
||
@SerializedName("red_packet_status")
|
||
private int redPacketStatus;
|
||
@SerializedName("giftId")
|
||
private String giftId;
|
||
private Map<String,String> params;//用于跳转Activity时扩展参数,例:从首页Banner跳转到直播间时需要根据携带参数判断是否弹出新人特惠对话框
|
||
|
||
public String getRecommendCardIconSizeTwo() {
|
||
return recommendCardIconSizeTwo;
|
||
}
|
||
|
||
public LiveBean setRecommendCardIconSizeTwo(String recommendCardIconSizeTwo) {
|
||
this.recommendCardIconSizeTwo = recommendCardIconSizeTwo;
|
||
return this;
|
||
}
|
||
|
||
public String getGiftId() {
|
||
return giftId;
|
||
}
|
||
|
||
public void setGiftId(String giftId) {
|
||
this.giftId = giftId;
|
||
}
|
||
|
||
public String getRecommendCardIcon() {
|
||
if (TextUtils.isEmpty(recommendCardIconSizeThree)) {
|
||
if (!TextUtils.isEmpty(recommendCardIconSizeTwo)) {
|
||
return recommendCardIconSizeTwo;
|
||
} else {
|
||
return null;
|
||
}
|
||
} else {
|
||
return recommendCardIconSizeThree;
|
||
}
|
||
}
|
||
|
||
public String getRecommendCardIconSizeThree() {
|
||
return recommendCardIconSizeThree;
|
||
}
|
||
|
||
public LiveBean setRecommendCardIconSizeThree(String recommendCardIconSizeThree) {
|
||
this.recommendCardIconSizeThree = recommendCardIconSizeThree;
|
||
return this;
|
||
}
|
||
|
||
public Map<String, String> getParams() {
|
||
return params;
|
||
}
|
||
|
||
public void setParams(Map<String, String> params) {
|
||
this.params = params;
|
||
}
|
||
|
||
public String getRecommendcardtype() {
|
||
return recommendCardtype;
|
||
}
|
||
|
||
public void setRecommendcardtype(String recommendcardtype) {
|
||
this.recommendCardtype = recommendcardtype;
|
||
}
|
||
|
||
public String getIsattention() {
|
||
return isattention;
|
||
}
|
||
|
||
public LiveBean setIsattention(String isattention) {
|
||
this.isattention = isattention;
|
||
return this;
|
||
}
|
||
|
||
private List<WeekListBean> mWeekList = new ArrayList<>();
|
||
|
||
public List<WeekListBean> getmWeekList() {
|
||
return mWeekList;
|
||
}
|
||
|
||
public void setmWeekList(List<WeekListBean> mWeekList) {
|
||
this.mWeekList = mWeekList;
|
||
}
|
||
|
||
public int getIs_rong() {
|
||
return is_rong;
|
||
}
|
||
|
||
public void setIs_rong(int is_rong) {
|
||
this.is_rong = is_rong;
|
||
}
|
||
|
||
public String getDrpk_status() {
|
||
return drpk_status;
|
||
}
|
||
|
||
public void setDrpk_status(String drpk_status) {
|
||
this.drpk_status = drpk_status;
|
||
}
|
||
|
||
public String getImg() {
|
||
return img;
|
||
}
|
||
|
||
public void setImg(String img) {
|
||
this.img = img;
|
||
}
|
||
|
||
public String getUrl() {
|
||
return url;
|
||
}
|
||
|
||
public void setUrl(String url) {
|
||
this.url = url;
|
||
}
|
||
|
||
public String getIs_week() {
|
||
return is_week;
|
||
}
|
||
|
||
public void setIs_week(String is_week) {
|
||
this.is_week = is_week;
|
||
}
|
||
|
||
public String getContent_pic_size_one() {
|
||
return content_pic_size_one;
|
||
}
|
||
|
||
public void setContent_pic_size_one(String content_pic_size_one) {
|
||
this.content_pic_size_one = content_pic_size_one;
|
||
}
|
||
|
||
public String getContent_pic_size_two() {
|
||
return content_pic_size_two;
|
||
}
|
||
|
||
public void setContent_pic_size_two(String content_pic_size_two) {
|
||
this.content_pic_size_two = content_pic_size_two;
|
||
}
|
||
|
||
public String getContent_pic_size_three() {
|
||
return content_pic_size_three;
|
||
}
|
||
|
||
public void setContent_pic_size_three(String content_pic_size_three) {
|
||
this.content_pic_size_three = content_pic_size_three;
|
||
}
|
||
|
||
public String getHot_num() {
|
||
return hot_num;
|
||
}
|
||
|
||
public void setHot_num(String hot_num) {
|
||
this.hot_num = hot_num;
|
||
}
|
||
|
||
public int getLandscape() {
|
||
return landscape;
|
||
}
|
||
|
||
public void setLandscape(int landscape) {
|
||
this.landscape = landscape;
|
||
}
|
||
|
||
public String getPk_avatar_thumb() {
|
||
return pk_avatar_thumb;
|
||
}
|
||
|
||
public void setPk_avatar_thumb(String pk_avatar_thumb) {
|
||
this.pk_avatar_thumb = pk_avatar_thumb;
|
||
}
|
||
|
||
public String getIsTop() {
|
||
return isTop;
|
||
}
|
||
|
||
public void setIsTop(String isTop) {
|
||
this.isTop = isTop;
|
||
}
|
||
|
||
public String getDistance() {
|
||
return distance;
|
||
}
|
||
|
||
public void setDistance(String distance) {
|
||
this.distance = distance;
|
||
}
|
||
|
||
public String getUid() {
|
||
return uid;
|
||
}
|
||
|
||
public void setUid(String uid) {
|
||
this.uid = uid;
|
||
}
|
||
|
||
public String getAvatar() {
|
||
return avatar;
|
||
}
|
||
|
||
public void setAvatar(String avatar) {
|
||
this.avatar = avatar;
|
||
}
|
||
|
||
@JSONField(name = "avatar_thumb")
|
||
public String getAvatarThumb() {
|
||
return avatarThumb;
|
||
}
|
||
|
||
@JSONField(name = "avatar_thumb")
|
||
public void setAvatarThumb(String avatarThumb) {
|
||
this.avatarThumb = avatarThumb;
|
||
}
|
||
|
||
@JSONField(name = "user_nicename")
|
||
public String getUserNiceName() {
|
||
|
||
return userNiceName;
|
||
}
|
||
|
||
@JSONField(name = "user_nicename")
|
||
public void setUserNiceName(String userNiceName) {
|
||
this.userNiceName = userNiceName;
|
||
}
|
||
|
||
public String getTitle() {
|
||
return title;
|
||
}
|
||
|
||
public void setTitle(String title) {
|
||
this.title = title;
|
||
}
|
||
|
||
public String getCity() {
|
||
return city;
|
||
}
|
||
|
||
public void setCity(String city) {
|
||
this.city = city;
|
||
}
|
||
|
||
public String getStream() {
|
||
return stream;
|
||
}
|
||
|
||
public void setStream(String stream) {
|
||
this.stream = stream;
|
||
}
|
||
|
||
public String getPull() {
|
||
return pull;
|
||
}
|
||
|
||
public void setPull(String pull) {
|
||
this.pull = pull;
|
||
}
|
||
|
||
public String getThumb() {
|
||
return thumb;
|
||
}
|
||
|
||
public void setThumb(String thumb) {
|
||
this.thumb = thumb;
|
||
}
|
||
|
||
|
||
public String getNums() {
|
||
return nums;
|
||
}
|
||
|
||
public void setNums(String nums) {
|
||
this.nums = nums;
|
||
}
|
||
|
||
@JSONField(name = "level_anchor")
|
||
public int getLevelAnchor() {
|
||
return levelAnchor;
|
||
}
|
||
|
||
@JSONField(name = "level_anchor")
|
||
public void setLevelAnchor(int levelAnchor) {
|
||
this.levelAnchor = levelAnchor;
|
||
}
|
||
|
||
public int getType() {
|
||
return type;
|
||
}
|
||
|
||
public void setType(int type) {
|
||
this.type = type;
|
||
}
|
||
|
||
@JSONField(name = "type_val")
|
||
public String getTypeVal() {
|
||
return typeVal;
|
||
}
|
||
|
||
@JSONField(name = "type_val")
|
||
public void setTypeVal(String typeVal) {
|
||
this.typeVal = typeVal;
|
||
}
|
||
|
||
@JSONField(name = "goodnum")
|
||
public String getGoodNum() {
|
||
return goodNum;
|
||
}
|
||
|
||
@JSONField(name = "goodnum")
|
||
public void setGoodNum(String goodNum) {
|
||
this.goodNum = goodNum;
|
||
}
|
||
|
||
@JSONField(name = "game_action")
|
||
public int getGameAction() {
|
||
return gameAction;
|
||
}
|
||
|
||
@JSONField(name = "game_action")
|
||
public void setGameAction(int gameAction) {
|
||
this.gameAction = gameAction;
|
||
}
|
||
|
||
public String getGame() {
|
||
return game;
|
||
}
|
||
|
||
public void setGame(String game) {
|
||
this.game = game;
|
||
}
|
||
|
||
public int getSex() {
|
||
return sex;
|
||
}
|
||
|
||
public void setSex(int sex) {
|
||
this.sex = sex;
|
||
}
|
||
|
||
@JSONField(name = "islive")
|
||
public String getIslive() {
|
||
return islive;
|
||
}
|
||
|
||
public void setIslive(String islive) {
|
||
this.islive = islive;
|
||
}
|
||
|
||
public int getRedPacketStatus() {
|
||
return redPacketStatus;
|
||
}
|
||
|
||
public void setRedPacketStatus(int redPacketStatus) {
|
||
this.redPacketStatus = redPacketStatus;
|
||
}
|
||
|
||
/**
|
||
* 显示靓号
|
||
*/
|
||
public String getLiangNameTip() {
|
||
if (!TextUtils.isEmpty(this.goodNum) && !"0".equals(this.goodNum)) {
|
||
return this.goodNum;
|
||
}
|
||
return this.uid;
|
||
}
|
||
|
||
public LiveBean() {
|
||
|
||
}
|
||
|
||
|
||
private LiveBean(Parcel in) {
|
||
this.uid = in.readString();
|
||
this.avatar = in.readString();
|
||
this.avatarThumb = in.readString();
|
||
this.userNiceName = in.readString();
|
||
this.title = in.readString();
|
||
this.city = in.readString();
|
||
this.stream = in.readString();
|
||
this.pull = in.readString();
|
||
this.thumb = in.readString();
|
||
this.nums = in.readString();
|
||
this.sex = in.readInt();
|
||
this.distance = in.readString();
|
||
this.levelAnchor = in.readInt();
|
||
this.type = in.readInt();
|
||
this.typeVal = in.readString();
|
||
this.goodNum = in.readString();
|
||
this.gameAction = in.readInt();
|
||
this.game = in.readString();
|
||
this.islive = in.readString();
|
||
this.isTop = in.readString();
|
||
this.pk_avatar_thumb = in.readString();
|
||
this.landscape = in.readInt();
|
||
this.hot_num = in.readString();
|
||
this.content_pic_size_one = in.readString();
|
||
this.content_pic_size_two = in.readString();
|
||
this.content_pic_size_three = in.readString();
|
||
this.is_week = in.readString();
|
||
this.img = in.readString();
|
||
this.url = in.readString();
|
||
this.drpk_status = in.readString();
|
||
this.is_rong = in.readInt();
|
||
this.isattention = in.readString();
|
||
this.recommendCardtype = in.readString();
|
||
this.recommendCardIconSizeTwo = in.readString();
|
||
this.recommendCardIconSizeThree = in.readString();
|
||
this.giftId = in.readString();
|
||
}
|
||
|
||
@Override
|
||
public int describeContents() {
|
||
return 0;
|
||
}
|
||
|
||
@Override
|
||
public void writeToParcel(Parcel dest, int flags) {
|
||
dest.writeString(this.uid);
|
||
dest.writeString(this.avatar);
|
||
dest.writeString(this.avatarThumb);
|
||
dest.writeString(this.userNiceName);
|
||
dest.writeString(this.title);
|
||
dest.writeString(this.city);
|
||
dest.writeString(this.stream);
|
||
dest.writeString(this.pull);
|
||
dest.writeString(this.thumb);
|
||
dest.writeString(this.nums);
|
||
dest.writeInt(this.sex);
|
||
dest.writeString(this.distance);
|
||
dest.writeInt(this.levelAnchor);
|
||
dest.writeInt(this.type);
|
||
dest.writeString(this.typeVal);
|
||
dest.writeString(this.goodNum);
|
||
dest.writeInt(this.gameAction);
|
||
dest.writeString(this.game);
|
||
dest.writeString(this.islive);
|
||
dest.writeString(this.isTop);
|
||
dest.writeString(this.pk_avatar_thumb);
|
||
dest.writeInt(this.landscape);
|
||
dest.writeString(this.hot_num);
|
||
dest.writeString(this.content_pic_size_one);
|
||
dest.writeString(this.content_pic_size_two);
|
||
dest.writeString(this.content_pic_size_three);
|
||
dest.writeString(this.is_week);
|
||
dest.writeString(this.img);
|
||
dest.writeString(this.url);
|
||
dest.writeString(this.drpk_status);
|
||
dest.writeInt(this.is_rong);
|
||
dest.writeString(this.isattention);
|
||
dest.writeString(this.recommendCardtype);
|
||
dest.writeString(this.recommendCardIconSizeTwo);
|
||
dest.writeString(this.recommendCardIconSizeThree);
|
||
dest.writeString(this.giftId);
|
||
}
|
||
|
||
public static final Creator<LiveBean> CREATOR = new Creator<LiveBean>() {
|
||
@Override
|
||
public LiveBean[] newArray(int size) {
|
||
return new LiveBean[size];
|
||
}
|
||
|
||
@Override
|
||
public LiveBean createFromParcel(Parcel in) {
|
||
return new LiveBean(in);
|
||
}
|
||
};
|
||
|
||
@Override
|
||
public String toString() {
|
||
return "LiveBean{" +
|
||
"uid='" + uid + '\'' +
|
||
", avatar='" + avatar + '\'' +
|
||
", avatarThumb='" + avatarThumb + '\'' +
|
||
", userNiceName='" + userNiceName + '\'' +
|
||
", title='" + title + '\'' +
|
||
", city='" + city + '\'' +
|
||
", stream='" + stream + '\'' +
|
||
", pull='" + pull + '\'' +
|
||
", thumb='" + thumb + '\'' +
|
||
", nums='" + nums + '\'' +
|
||
", sex=" + sex +
|
||
", distance='" + distance + '\'' +
|
||
", levelAnchor=" + levelAnchor +
|
||
", type=" + type +
|
||
", typeVal='" + typeVal + '\'' +
|
||
", goodNum='" + goodNum + '\'' +
|
||
", gameAction=" + gameAction +
|
||
", game='" + game + '\'' +
|
||
", islive='" + islive + '\'' +
|
||
", isTop='" + isTop + '\'' +
|
||
", pk_avatar_thumb='" + pk_avatar_thumb + '\'' +
|
||
", landscape=" + landscape +
|
||
", hot_num='" + hot_num + '\'' +
|
||
", content_pic_size_one='" + content_pic_size_one + '\'' +
|
||
", content_pic_size_two='" + content_pic_size_two + '\'' +
|
||
", content_pic_size_three='" + content_pic_size_three + '\'' +
|
||
", is_week='" + is_week + '\'' +
|
||
", img='" + img + '\'' +
|
||
", url='" + url + '\'' +
|
||
", drpk_status='" + drpk_status + '\'' +
|
||
", is_rong=" + is_rong +
|
||
", isattention='" + isattention + '\'' +
|
||
", recommendCardtype='" + recommendCardtype + '\'' +
|
||
", recommendCardIconSizeTwo='" + recommendCardIconSizeTwo + '\'' +
|
||
", recommendCardIconSizeThree='" + recommendCardIconSizeThree + '\'' +
|
||
", redPacketStatus=" + redPacketStatus +
|
||
", params=" + params +
|
||
", mWeekList=" + mWeekList +
|
||
'}';
|
||
}
|
||
}
|