女神说新的展示方式编辑完成
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.yunbao.common.bean;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
@@ -32,6 +34,9 @@ public class LiveAnchorSayModel extends BaseModel{
|
||||
private int isShow;
|
||||
private String content;
|
||||
private String styleImage;
|
||||
@Nullable
|
||||
private String title;
|
||||
|
||||
|
||||
public LivePreview() {
|
||||
}
|
||||
@@ -48,6 +53,15 @@ public class LiveAnchorSayModel extends BaseModel{
|
||||
return content;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(@Nullable String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ public interface PDLiveApi {
|
||||
* 【新人特惠】【趣味游戏】【幸运天使】
|
||||
*/
|
||||
@GET("/api/public/?service=Live.getLiveRoomActivtyBanner")
|
||||
Observable<ResponseModel<List<LiveRoomActivityBanner>>> getLiveRoomActivityBanner();
|
||||
Observable<ResponseModel<List<LiveRoomActivityBanner>>> getLiveRoomActivityBanner(@Query("langue") String language,@Query("version") String version);
|
||||
|
||||
/**
|
||||
* 新侧边栏请求
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.yunbao.common.http.live;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -348,8 +350,17 @@ public class LiveNetManager {
|
||||
* 获取 【新人特惠】【趣味游戏】【幸运天使】
|
||||
*/
|
||||
public void getLiveRoomActivityBanner(HttpCallback<List<LiveRoomActivityBanner>> callback) {
|
||||
//获取版本名称
|
||||
String versionName = "";
|
||||
try {
|
||||
PackageManager manager = mContext.getPackageManager();
|
||||
PackageInfo info = manager.getPackageInfo(mContext.getPackageName(), 0);
|
||||
versionName = info.versionName;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
API.get().pdLiveApi(mContext)
|
||||
.getLiveRoomActivityBanner()
|
||||
.getLiveRoomActivityBanner( WordUtil.isNewZh()?"chinese":"english",versionName)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(listResponseModel -> {
|
||||
|
||||
Reference in New Issue
Block a user