diff --git a/common/src/main/java/com/yunbao/common/bean/SudgameCodeModel.java b/common/src/main/java/com/yunbao/common/bean/SudgameCodeModel.java new file mode 100644 index 000000000..fe6802070 --- /dev/null +++ b/common/src/main/java/com/yunbao/common/bean/SudgameCodeModel.java @@ -0,0 +1,28 @@ +package com.yunbao.common.bean; + +import com.google.gson.annotations.SerializedName; + +public class SudgameCodeModel extends BaseModel { + @SerializedName("code") + private String code; + @SerializedName("expireDate") + private long expireDate; + + public String getCode() { + return code; + } + + public SudgameCodeModel setCode(String code) { + this.code = code; + return this; + } + + public long getExpireDate() { + return expireDate; + } + + public SudgameCodeModel setExpireDate(long expireDate) { + this.expireDate = expireDate; + return this; + } +} diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index c7adca890..29e10a140 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -53,6 +53,7 @@ import com.yunbao.common.bean.SearchModel; import com.yunbao.common.bean.SetAttentsModel; import com.yunbao.common.bean.SlideInBannerModel; import com.yunbao.common.bean.StarChallengeStatusModel; +import com.yunbao.common.bean.SudgameCodeModel; import com.yunbao.common.bean.UserAreaBean; import com.yunbao.common.bean.UserAvatarSelectBean; import com.yunbao.common.bean.VipModel; @@ -969,5 +970,12 @@ public interface PDLiveApi { @GET("/api/public/?service=gift.getGiftNamingInfo") Observable> getGiftNamingInfo(@Query("gift_id") String giftId); + /** + * 获取游戏code + * @return + */ + @GET("/api/public/?service=Sudgame.getCode") + Observable>> getCode(); + }