![JAR search and dependency download from the Maven repository](/logo.png)
com.uwetrottmann.tmdb.services.PersonService Maven / Gradle / Ivy
/*
* Copyright 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.uwetrottmann.tmdb.services;
import com.uwetrottmann.tmdb.entities.Credits;
import com.uwetrottmann.tmdb.entities.Person;
import com.uwetrottmann.tmdb.entities.PersonCredits;
import retrofit.http.GET;
import retrofit.http.Path;
public interface PersonService {
/**
* Get the general person information for a specific id.
*
* @param tmdbId TMDb id.
*/
@GET("/person/{id}")
Person summary(
@Path("id") int tmdbId
);
/**
* Get the movie credits for a specific person id.
*
* @param tmdbId TMDb id.
*/
@GET("/person/{id}/movie_credits")
PersonCredits movieCredits(
@Path("id") int tmdbId
);
/**
* Get the TV credits for a specific person id.
*
* @param tmdbId TMDb id.
*/
@GET("/person/{id}/tv_credits")
PersonCredits tvCredits(
@Path("id") int tmdbId
);
/**
* Get the movie & TV credits for a specific person id.
*
* @param tmdbId TMDb id.
*/
@GET("/person/{id}/combined_credits")
PersonCredits combinedCredits(
@Path("id") int tmdbId
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy