com.uwetrottmann.tmdb2.services.CompaniesService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tmdb-java Show documentation
Show all versions of tmdb-java Show documentation
tmdb-java is a retrofit2 based wrapper around the themoviedb.org API v3.
The newest version!
package com.uwetrottmann.tmdb2.services;
import com.uwetrottmann.tmdb2.entities.AppendToResponse;
import com.uwetrottmann.tmdb2.entities.Company;
import com.uwetrottmann.tmdb2.entities.MovieResultsPage;
import java.util.Map;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
public interface CompaniesService {
/**
* Get the basic company information for a specific A Company TMDb id.
*
* @param companyId A Company TMDb id.
*/
@GET("company/{company_id}")
Call summary(
@Path("company_id") int companyId
);
/**
* Get the basic company information for a specific A Company TMDb id.
*
* @param companyId A Company TMDb id.
* @param appendToResponse Optional. extra requests to append to the result. Accepted Value(s): movies
*/
@GET("company/{company_id}")
Call summary(
@Path("company_id") int companyId,
@Query("append_to_response") AppendToResponse appendToResponse
);
/**
* Get the basic company information for a specific A Company TMDb id.
*
* @param companyId A Company TMDb id.
* @param appendToResponse Optional. extra requests to append to the result. Accepted Value(s): movies
* @param options Optional. parameters for the appended extra results.
*/
@GET("company/{company_id}")
Call summary(
@Path("company_id") int companyId,
@Query("append_to_response") AppendToResponse appendToResponse,
@QueryMap Map options
);
/**
* Get the movies for a specific A Company TMDb id.
*
* Is highly recommend using {@link DiscoverService#discoverMovie discoverMovie}
* instead of this method as it is much more flexible.
*
* @param companyId A Company TMDb id.
*/
@GET("company/{company_id}/movies")
Call movies(
@Path("company_id") int companyId
);
}