diff --git a/src/main/java/com/hiczp/bilibili/api/live/entity/UserInfoEntity.java b/src/main/java/com/hiczp/bilibili/api/live/entity/UserInfoEntity.java index a0b4d2a..94e5570 100644 --- a/src/main/java/com/hiczp/bilibili/api/live/entity/UserInfoEntity.java +++ b/src/main/java/com/hiczp/bilibili/api/live/entity/UserInfoEntity.java @@ -5,16 +5,19 @@ import com.google.gson.annotations.SerializedName; public class UserInfoEntity { /** * code : 0 - * message : ok - * data : {"silver":1896,"gold":0,"vip":0,"svip":0,"svip_time":"0000-00-00 00:00:00","vip_time":"0000-00-00 00:00:00","room_id":1110317,"user_level":20,"user_level_color":6406234,"vip_view_status":1,"isSign":1,"use_count":0,"wearTitle":{"title":"0","activity":"0"}} + * msg : OK + * message : OK + * data : {"silver":129890,"gold":16102,"medal":{"medal_name":"欧皇","level":3,"color":6406234,"medal_color":6406234},"vip":1,"svip":1,"svip_time":"2019-02-09 11:03:54","vip_time":"2019-02-09 11:03:54","wearTitle":{"title":"title-111-1","activity":"bilibili Link"},"isSign":0,"user_level":22,"user_level_color":5805790,"room_id":29434,"use_count":0,"vip_view_status":1} */ @SerializedName("code") private int code; + @SerializedName("msg") + private String msg; @SerializedName("message") private String message; @SerializedName("data") - private UserEntity data; + private Data data; public int getCode() { return code; @@ -24,6 +27,14 @@ public class UserInfoEntity { this.code = code; } + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + public String getMessage() { return message; } @@ -32,35 +43,38 @@ public class UserInfoEntity { this.message = message; } - public UserEntity getData() { + public Data getData() { return data; } - public void setData(UserEntity data) { + public void setData(Data data) { this.data = data; } - public static class UserEntity { + public static class Data { /** - * silver : 1896 - * gold : 0 - * vip : 0 - * svip : 0 - * svip_time : 0000-00-00 00:00:00 - * vip_time : 0000-00-00 00:00:00 - * room_id : 1110317 - * user_level : 20 - * user_level_color : 6406234 - * vip_view_status : 1 - * isSign : 1 + * silver : 129890 + * gold : 16102 + * medal : {"medal_name":"欧皇","level":3,"color":6406234,"medal_color":6406234} + * vip : 1 + * svip : 1 + * svip_time : 2019-02-09 11:03:54 + * vip_time : 2019-02-09 11:03:54 + * wearTitle : {"title":"title-111-1","activity":"bilibili Link"} + * isSign : 0 + * user_level : 22 + * user_level_color : 5805790 + * room_id : 29434 * use_count : 0 - * wearTitle : {"title":"0","activity":"0"} + * vip_view_status : 1 */ @SerializedName("silver") private int silver; @SerializedName("gold") private int gold; + @SerializedName("medal") + private Medal medal; @SerializedName("vip") private int vip; @SerializedName("svip") @@ -69,20 +83,20 @@ public class UserInfoEntity { private String svipTime; @SerializedName("vip_time") private String vipTime; - @SerializedName("room_id") - private int roomId; + @SerializedName("wearTitle") + private WearTitle wearTitle; + @SerializedName("isSign") + private boolean isSign; @SerializedName("user_level") private int userLevel; @SerializedName("user_level_color") private int userLevelColor; - @SerializedName("vip_view_status") - private int vipViewStatus; - @SerializedName("isSign") - private int isSign; + @SerializedName("room_id") + private int roomId; @SerializedName("use_count") private int useCount; - @SerializedName("wearTitle") - private WearTitleEntity wearTitle; + @SerializedName("vip_view_status") + private int vipViewStatus; public int getSilver() { return silver; @@ -100,6 +114,14 @@ public class UserInfoEntity { this.gold = gold; } + public Medal getMedal() { + return medal; + } + + public void setMedal(Medal medal) { + this.medal = medal; + } + public int getVip() { return vip; } @@ -132,12 +154,20 @@ public class UserInfoEntity { this.vipTime = vipTime; } - public int getRoomId() { - return roomId; + public WearTitle getWearTitle() { + return wearTitle; } - public void setRoomId(int roomId) { - this.roomId = roomId; + public void setWearTitle(WearTitle wearTitle) { + this.wearTitle = wearTitle; + } + + public boolean isIsSign() { + return isSign; + } + + public void setIsSign(boolean isSign) { + this.isSign = isSign; } public int getUserLevel() { @@ -156,20 +186,12 @@ public class UserInfoEntity { this.userLevelColor = userLevelColor; } - public int getVipViewStatus() { - return vipViewStatus; + public int getRoomId() { + return roomId; } - public void setVipViewStatus(int vipViewStatus) { - this.vipViewStatus = vipViewStatus; - } - - public int getIsSign() { - return isSign; - } - - public void setIsSign(int isSign) { - this.isSign = isSign; + public void setRoomId(int roomId) { + this.roomId = roomId; } public int getUseCount() { @@ -180,18 +202,68 @@ public class UserInfoEntity { this.useCount = useCount; } - public WearTitleEntity getWearTitle() { - return wearTitle; + public int getVipViewStatus() { + return vipViewStatus; } - public void setWearTitle(WearTitleEntity wearTitle) { - this.wearTitle = wearTitle; + public void setVipViewStatus(int vipViewStatus) { + this.vipViewStatus = vipViewStatus; } - public static class WearTitleEntity { + public static class Medal { /** - * title : 0 - * activity : 0 + * medal_name : 欧皇 + * level : 3 + * color : 6406234 + * medal_color : 6406234 + */ + + @SerializedName("medal_name") + private String medalName; + @SerializedName("level") + private int level; + @SerializedName("color") + private int color; + @SerializedName("medal_color") + private int medalColor; + + public String getMedalName() { + return medalName; + } + + public void setMedalName(String medalName) { + this.medalName = medalName; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public int getColor() { + return color; + } + + public void setColor(int color) { + this.color = color; + } + + public int getMedalColor() { + return medalColor; + } + + public void setMedalColor(int medalColor) { + this.medalColor = medalColor; + } + } + + public static class WearTitle { + /** + * title : title-111-1 + * activity : bilibili Link */ @SerializedName("title")