添加贵族,连麦
This commit is contained in:
@@ -83,6 +83,20 @@ public class LiveTotalDialog extends AbsDialogFragment {
|
||||
dismiss();
|
||||
}
|
||||
);
|
||||
//贵族
|
||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.noble_layout), () -> {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.NOBLE));
|
||||
dismiss();
|
||||
}
|
||||
);
|
||||
//连麦
|
||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_link_mic), () -> {
|
||||
Bus.get().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.LIANMAI));
|
||||
dismiss();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -30,9 +30,11 @@ public class LiveAudienceEvent extends BaseModel {
|
||||
BOTTOMCOLLECTION(2, "底部合集"),
|
||||
GIFTPOPUP(3, "礼物弹窗"),
|
||||
CURRENTACTIVITY(4, "当前活动"),
|
||||
FANCLUB(5,"粉絲團"),
|
||||
GUARD(6,"守護"),
|
||||
LIVEWKS(7,"周星榜");
|
||||
FANCLUB(5, "粉絲團"),
|
||||
GUARD(6, "守護"),
|
||||
LIVEWKS(7, "周星榜"),
|
||||
NOBLE(8, "贵族"),
|
||||
LIANMAI(9, "连麦");
|
||||
|
||||
|
||||
private int type;
|
||||
|
||||
@@ -148,4 +148,9 @@ public interface PDLiveApi {
|
||||
*/
|
||||
@GET("/api/public/?service=Active.getActiveList")
|
||||
Observable<ResponseModel<List<ActiveModel>>> getActiveList();
|
||||
/**
|
||||
* 获取活动
|
||||
*/
|
||||
@GET("/api/public/?service=live.getDrLm")
|
||||
Observable<ResponseModel<List<ActiveModel>>> getDrLm();
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/noble_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="28dp"
|
||||
@@ -164,6 +165,7 @@
|
||||
android:layout_marginBottom="20dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/live_link_mic"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
|
||||
Reference in New Issue
Block a user