From 38e85d20a40e496968c99fb898ecbb924b05212f Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Tue, 6 Sep 2022 15:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E8=81=8A=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=9B=B4=E6=92=AD=E9=A3=9E=E6=9C=BA=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/common/bean/RecommendLiveRoomModel.java | 11 +++++++++++ .../manager/imrongcloud/InstructorSendReward.java | 4 +--- .../yunbao/live/views/RecommendLiveRoomProvider.java | 4 +++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/bean/RecommendLiveRoomModel.java b/common/src/main/java/com/yunbao/common/bean/RecommendLiveRoomModel.java index f8cdf1b07..5a930c02b 100644 --- a/common/src/main/java/com/yunbao/common/bean/RecommendLiveRoomModel.java +++ b/common/src/main/java/com/yunbao/common/bean/RecommendLiveRoomModel.java @@ -19,6 +19,17 @@ public class RecommendLiveRoomModel extends BaseModel { private String avatar; @SerializedName("title") private String title; + @SerializedName("admin_nickname") + private String adminNickname; + + public String getAdminNickname() { + return adminNickname; + } + + public RecommendLiveRoomModel setAdminNickname(String adminNickname) { + this.adminNickname = adminNickname; + return this; + } public String getLiveuid() { return liveuid; diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/InstructorSendReward.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/InstructorSendReward.java index 98a8d2f78..948275630 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/InstructorSendReward.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/InstructorSendReward.java @@ -9,9 +9,7 @@ import io.rong.imlib.model.MessageContent; @SuppressLint("ParcelCreator") @MessageTag(value = "InstructorSendReward", flag = MessageTag.ISCOUNTED) public class InstructorSendReward extends MessageContent { - public InstructorSendReward(byte[] data) { - super(data); - } + @Override public byte[] encode() { diff --git a/live/src/main/java/com/yunbao/live/views/RecommendLiveRoomProvider.java b/live/src/main/java/com/yunbao/live/views/RecommendLiveRoomProvider.java index 056add0b7..40439852a 100644 --- a/live/src/main/java/com/yunbao/live/views/RecommendLiveRoomProvider.java +++ b/live/src/main/java/com/yunbao/live/views/RecommendLiveRoomProvider.java @@ -29,6 +29,7 @@ import io.rong.imlib.model.MessageContent; */ public class RecommendLiveRoomProvider extends BaseMessageItemProvider { private Context mContext; + private String politicalInstructor = ""; public RecommendLiveRoomProvider(Context context) { this.mContext = context; @@ -69,9 +70,10 @@ public class RecommendLiveRoomProvider extends BaseMessageItemProvider