用户信息相关页面增加贵族等级标识

This commit is contained in:
huangjian
2021-12-30 18:22:47 +08:00
parent 58807aac5e
commit 0738ac3ca5
32 changed files with 317 additions and 145 deletions

View File

@@ -3,11 +3,14 @@ package com.yizhuan.xchat_android_core.user.bean;
import com.yizhuan.xchat_android_core.level.UserLevelVo;
import com.yizhuan.xchat_android_core.noble.NobleInfo;
import com.yizhuan.xchat_android_core.room.bean.RoomInfo;
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
/**
* Created by Administrator on 2017/7/8 0008.
@@ -55,6 +58,10 @@ public class AttentionInfo implements Serializable {
//1普通账号2官方账号3机器账号
private int defUser;
private UserVipInfo userVipInfoVO;
private String userInfoCardPic;
/**
* 判断是否为官方
* @return

View File

@@ -1,5 +1,7 @@
package com.yizhuan.xchat_android_core.user.bean;
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
import java.io.Serializable;
import lombok.Getter;
@@ -55,6 +57,8 @@ public class BaseUserInfo implements Serializable {
private String micDecorate;
private UserInfo.NamePlate nameplate;
private UserVipInfo userVipInfoVO;
/**
* 判断是否为官方账号
* @return

View File

@@ -2,6 +2,7 @@ package com.yizhuan.xchat_android_core.user.bean;
import com.yizhuan.xchat_android_core.level.UserLevelVo;
import com.yizhuan.xchat_android_core.noble.NobleInfo;
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
import java.io.Serializable;
@@ -29,6 +30,10 @@ public class FansInfo implements Serializable {
//1普通账号2官方账号3机器账号
private int defUser;
private UserVipInfo userVipInfoVO;
private String userInfoCardPic;
/**
* 判断是否为官方
* @return

View File

@@ -15,6 +15,7 @@ import com.yizhuan.xchat_android_core.decoration.headwear.bean.HeadWearInfo;
import com.yizhuan.xchat_android_core.level.UserLevelVo;
import com.yizhuan.xchat_android_core.noble.NobleInfo;
import com.yizhuan.xchat_android_core.utils.StarUtils;
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
import java.io.Serializable;
import java.util.ArrayList;
@@ -203,6 +204,14 @@ public class UserInfo implements Serializable {
@Setter
private int gameStatus;
@Getter
@Setter
private UserVipInfo userVipInfoVO;
@Getter
@Setter
private String userInfoCardPic;
public Location getUserExpand() {
return userExpand;
}

View File

@@ -0,0 +1,9 @@
package com.yizhuan.xchat_android_core.vip
import java.io.Serializable
data class UserVipInfo(
val vipIcon: String = "",
val vipLevel: String = "",
val friendNickColour: String = "",
) : Serializable

View File

@@ -2,6 +2,7 @@ package com.yizhuan.xchat_android_core.community.bean;
import com.yizhuan.xchat_android_core.community.bean.comment.Reply;
import com.yizhuan.xchat_android_core.community.bean.comment.ReplyResult;
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
import com.yizhuan.xchat_android_library.utils.ListUtils;
@@ -44,6 +45,8 @@ public class Comment {
private String cacheNextReplyId;
private UserVipInfo userVipInfoVO;
public boolean isEmptyReply() {
return replyInfo == null || ListUtils.isListEmpty(replyInfo.getReplyList());
}

View File

@@ -5,6 +5,7 @@ import android.text.TextUtils;
import com.yizhuan.xchat_android_core.user.bean.BaseUserInfo;
import com.yizhuan.xchat_android_core.user.bean.UserInfo;
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
import java.io.Serializable;
import java.util.ArrayList;

View File

@@ -1,5 +1,7 @@
package com.yizhuan.xchat_android_core.community.bean.comment;
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
import lombok.Data;
/**
@@ -30,5 +32,7 @@ public class Reply {
private int replyCount;
private UserVipInfo userVipInfoVO;
}