-
Notifications
You must be signed in to change notification settings - Fork 178
/
LiveAPI.java
41 lines (33 loc) · 1.18 KB
/
LiveAPI.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.c9mj.platform.live.api;
import com.c9mj.platform.live.bean.LiveBaseBean;
import com.c9mj.platform.live.bean.LiveListItemBean;
import java.util.List;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;
/**
* author: LMJ
* date: 2016/9/1
*/
public interface LiveAPI {
public static final int LIMIT = 20;
public static final String MAX_ID = "0";
public static final String IMEI = "123456789101234";
public static final String OS_TYPE = "Android";
public static final String OS_VERSION = "5.1.1";
public static final String VERSION = "3.6.6";
public static final String LANG = "zh-cn";
//请求获取不同游戏的直播列表
@GET("/api/live/list/")
Observable<LiveBaseBean<List<LiveListItemBean>>> getLiveList(
@Query("offset") int offset,
@Query("limit") int limit,
@Query("game_type") String game_type,
@Query("max_id") String max_id,
@Query("imei") String imei,
@Query("os_type") String os_type,
@Query("os_version") String os_version,
@Query("version") String version,
@Query("lang") String lang
);
}