私聊页面添加直播飞机票
This commit is contained in:
parent
cb50c00a06
commit
38e85d20a4
@ -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;
|
||||
|
@ -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() {
|
||||
|
@ -29,6 +29,7 @@ import io.rong.imlib.model.MessageContent;
|
||||
*/
|
||||
public class RecommendLiveRoomProvider extends BaseMessageItemProvider<RecommendLiveRoom> {
|
||||
private Context mContext;
|
||||
private String politicalInstructor = "";
|
||||
|
||||
public RecommendLiveRoomProvider(Context context) {
|
||||
this.mContext = context;
|
||||
@ -69,9 +70,10 @@ public class RecommendLiveRoomProvider extends BaseMessageItemProvider<Recommend
|
||||
|
||||
@Override
|
||||
public Spannable getSummarySpannable(Context context, RecommendLiveRoom recommendLiveRoom) {
|
||||
String politicalInstructor = "";
|
||||
|
||||
if (recommendLiveRoom != null && !TextUtils.isEmpty(recommendLiveRoom.getContent())) {
|
||||
RecommendLiveRoomModel model = new Gson().fromJson(recommendLiveRoom.getContent(), RecommendLiveRoomModel.class);
|
||||
politicalInstructor = model.getAdminNickname();
|
||||
}
|
||||
return new SpannableString(politicalInstructor + mContext.getString(R.string.live_room_air_ticket));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user