All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uwetrottmann.tmdb2.services.CompaniesService Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
package com.uwetrottmann.tmdb2.services;

import com.uwetrottmann.tmdb2.entities.AppendToResponse;
import com.uwetrottmann.tmdb2.entities.Company;
import com.uwetrottmann.tmdb2.entities.DiscoverFilter;
import com.uwetrottmann.tmdb2.entities.MovieResultsPage;
import com.uwetrottmann.tmdb2.entities.TmdbDate;
import com.uwetrottmann.tmdb2.enumerations.SortBy;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

import java.util.Map;

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( *String, String, SortBy, String, String, String, Boolean, Boolean, * Integer, Integer, TmdbDate, TmdbDate, TmdbDate, TmdbDate, Integer, * Integer, Float, Float, DiscoverFilter, DiscoverFilter, DiscoverFilter, * DiscoverFilter, DiscoverFilter, DiscoverFilter, Integer, DiscoverFilter, * Integer, Integer, DiscoverFilter, String, DiscoverFilter) 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 ); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy