增加 live 有关 API

AppFeed/index
AppSearch/index
mobile/rooms
This commit is contained in:
czp 2018-02-19 02:12:47 +08:00
parent 6575e8d736
commit a7affab8fc
5 changed files with 960 additions and 1 deletions

View File

@ -1,5 +1,5 @@
group = 'com.hiczp'
version = '0.0.4'
version = '0.0.5'
description = 'Bilibili android client API library written in Java'
apply plugin: 'idea'

View File

@ -138,4 +138,23 @@ public interface LiveService {
//无论是否已经签到, 返回的 code 都是 0. 除了字符串比对, 要想知道是否已经签到要通过 getUserInfo().getIsSign()
@GET("AppUser/getSignInfo")
Call<SignInfoEntity> getSignInfo();
//获得关注列表("关注主播" 页面)
//未登录时返回 32205
@GET("AppFeed/index")
Call<FollowedHostsEntity> getFollowedHosts(@Query("page") long page, @Query("pagesize") long pageSize);
//type room 时只返回 房间 的搜索结果
//type user 时只返回 用户 的搜索结果
//type all 房间 用户 的搜索结果都有
@GET("AppSearch/index")
Call<SearchResponseEntity> search(@Query("keyword") String keyword, @Query("page") long page, @Query("pagesize") long pageSize, @Query("type") String type);
default Call<SearchResponseEntity> search(String keyword, long page, long pageSize) {
return search(keyword, page, pageSize, "all");
}
//"直播" 页面下面的推荐, 每个分类有六个的那种
@GET("mobile/rooms")
Call<RoomsEntity> getRooms();
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long