package com.hi.music.player.network;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface MusicApi {


    //首页数据
    @POST("youtubei/v1/browse?prettyPrint=false")
    @Headers("X-Goog-Api-Key:AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8")
    Observable<ResponseBody> getHomeData(@Body RequestBody requestBody);




    //首页更多数据
    @POST("youtubei/v1/browse")
    @Headers("X-Goog-Api-Key:AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8")
    Observable<ResponseBody> getHomeMoreData(@Query("ctoken") String token,
                                             @Query("continuation") String continuation,
                                             @Query("type") String type,
                                             @Query("itct") String itct,
                                             @Query("prettyPrint") boolean prettyPrint,@Body RequestBody requestBody);



    //    X-Goog-FieldMask: contents.singleColumnMusicWatchNextResultsRenderer.tabbedRenderer.watchNextTabbedResultsRenderer.tabs.tabRenderer.content.musicQueueRenderer.content.playlistPanelRenderer(continuations,contents(automixPreviewVideoRenderer,playlistPanelVideoRenderer(title,navigationEndpoint,longBylineText,shortBylineText,thumbnail,lengthText)))
    @POST("youtubei/v1/next?prettyPrint=false")
    @Headers("X-Goog-Api-Key:AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8")
    Observable<ResponseBody> getMusicPlayPage(@Header("X-Goog-FieldMask") String customHeader, @Body RequestBody requestBody);


}
