package com.androidtmdbwrapper.apiservices;

import com.androidtmdbwrapper.model.core.SearchResult;
import com.androidtmdbwrapper.model.movies.BasicMovieInfo;
import com.androidtmdbwrapper.model.people.PeopleBasic;
import com.androidtmdbwrapper.model.tv.BasicTVInfo;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by sHIVAM on 2/18/2017.
 */

public interface SearchService {

    @GET("search/movie")
    Observable<SearchResult<BasicMovieInfo>> searchMovies(
            @Query("query") String query,
            @Query("page") Integer page
            );

    @GET("search/tv")
    Observable<SearchResult<BasicTVInfo>> searchTv(
            @Query("query") String query,
            @Query("page") Integer page
    );

    @GET("search/person")
    Observable<SearchResult<PeopleBasic>> searchPeople(
            @Query("query") String query,
            @Query("page") Integer page
    );

}

@@ -589,24 +589,75 @@
 Integer page
+,%0A            @Query(%22include_adult%22) Boolean adult
 %0A           
@@ -808,32 +808,83 @@
 e%22) Integer page
+,%0A            @Query(%22include_adult%22) Boolean adult
 %0A    );%0A%0A    @GE

change in search function parameters