package com.lh.fly.data.statuses;
import com.lh.fly.api.Constants;
import com.lh.fly.model.HomeTimeLine;
import com.lh.fly.model.PublicTimeLine;
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Query;
/**
* 微博读取接口
*/
public interface AccessStatusesService {
// 返回最新公共微博
@GET(Constants.PUBLIC_STATUS_ACESS)
void getPublicTimeLine(
@Query("source") String source,
@Query("access_token") String access_token,
@Query("count") int count,
@Query("page") int page,
@Query("base_app") int base_app,
Callback<PublicTimeLine> cb);
// 返回最新公共微博
@GET(Constants.PUBLIC_STATUS_ACESS)
void getDefaultPublicTimeLine(
@Query("access_token") String access_token,
@Query("count") int count,
@Query("page") int page,
@Query("base_app") int base_app,
Callback<PublicTimeLine> cb);
// 获取当前登录用户及其所关注用户的最新微博
@GET(Constants.FRIEND_STATUS_ACESS)
void getHomeTimeLine(
@Query("source") String source,
@Query("access_token") String access_token,
@Query("since_id") long since_id,
@Query("max_id") long max_id,
@Query("count") int count,
@Query("page") int page,
@Query("base_app") int base_app,
@Query("trim_user") int trim_user,
Callback<HomeTimeLine> cb);
// 获取当前登录用户及其所关注用户的最新微博
@GET(Constants.FRIEND_STATUS_ACESS)
void getDefaultHomeTimeLine(
@Query("access_token") String access_token,
@Query("since_id") long since_id,
@Query("count") int count,
Callback<HomeTimeLine> cb);
}