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

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

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 ); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy