// Path: app/src/main/java/com/popomusic/videoModel/Find.java
// public class Find {
// 
//     public CategoryInfo categoryInfo;
//     public List<SectionList> sectionList;
// 
// }
// 
// Path: app/src/main/java/com/popomusic/videoModel/Interesting.java
// public class Interesting {
// 
//     public List<ItemList> itemList;
// 
// }


import com.popomusic.videoModel.Find;
import com.popomusic.videoModel.Interesting;
import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;
package com.popomusic.api;



/**
 * Created by kaiyan on 2017/5/20 0020.
 */
public interface VideoApi {
    @GET("v3/videos?num=10")
    Flowable<Interesting> getInteresting(
            @Query("start") int start, @Query("categoryId") int categoryId,
            @Query("strategy") String strategy);

    @GET("v3/tag/videos")
    Flowable<Interesting> related(
            @Query("start") int start, @Query("tagId") int id,
            @Query("strategy") String strategy);

    @GET("v3/pgc/videos")
    Flowable<Interesting> relatedHeader(
            @Query("start") int start, @Query("pgcId") int id,
            @Query("strategy") String strategy);

    @GET("v3/categories/detail")
// Path: app/src/main/java/com/popomusic/videoModel/Find.java
// public class Find {
// 
//     public CategoryInfo categoryInfo;
//     public List<SectionList> sectionList;
// 
// }
// 
// Path: app/src/main/java/com/popomusic/videoModel/Interesting.java
// public class Interesting {
// 
//     public List<ItemList> itemList;
// 
// }


// Path: app/src/main/java/com/popomusic/api/VideoApi.java
import com.popomusic.videoModel.Find;
import com.popomusic.videoModel.Interesting;
import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

package com.popomusic.api;



/**
 * Created by kaiyan on 2017/5/20 0020.
 */
public interface VideoApi {
    @GET("v3/videos?num=10")
    Flowable<Interesting> getInteresting(
            @Query("start") int start, @Query("categoryId") int categoryId,
            @Query("strategy") String strategy);

    @GET("v3/tag/videos")
    Flowable<Interesting> related(
            @Query("start") int start, @Query("tagId") int id,
            @Query("strategy") String strategy);

    @GET("v3/pgc/videos")
    Flowable<Interesting> relatedHeader(
            @Query("start") int start, @Query("pgcId") int id,
            @Query("strategy") String strategy);

    @GET("v3/categories/detail")
    Flowable<Find> findVideo(@Query("id") int id);