本文整理汇总了Java中com.uwetrottmann.thetvdb.TheTvdb类的典型用法代码示例。如果您正苦于以下问题:Java TheTvdb类的具体用法?Java TheTvdb怎么用?Java TheTvdb使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TheTvdb类属于com.uwetrottmann.thetvdb包,在下文中一共展示了TheTvdb类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: episodesQuery
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
/**
* This route allows the user to query against episodes for the given series. The response is a paginated array of
* episode records that have been filtered down to basic information.
*
* @param id ID of the series.
* @param language See <a href="http://en.wikipedia.org/wiki/Content_negotiation">Content negotiation</a>. Records
* are returned with the Episode name and Overview in the desired language, if it exists. If there is no
* translation
* for the given language, then the record is still returned but with empty values for the translated fields.
* @param page Page of results to fetch. Defaults to page 1 if not provided.
*/
@GET("series/{id}/episodes/query")
Call<EpisodesResponse> episodesQuery(
@Path("id") int id,
@Query("absoluteNumber") Integer absoluteNumber,
@Query("airedSeason") Integer airedSeason,
@Query("airedEpisode") Integer airedEpisode,
@Query("dvdSeason") Integer dvdSeason,
@Query("dvdEpisode") Double dvdEpisode,
@Query("imdbId") String imdbId,
@Query("firstAired") String firstAired,
@Query("page") Integer page,
@Header(TheTvdb.HEADER_ACCEPT_LANGUAGE) String language
);
示例2: imagesQuery
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
@GET("series/{id}/images/query")
Call<SeriesImageQueryResultResponse> imagesQuery(
@Path("id") int id,
@Query("keyType") String keyType,
@Query("resolution") String resolution,
@Query("subKey") String subKey,
@Header(TheTvdb.HEADER_ACCEPT_LANGUAGE) String language
);
示例3: series
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
/**
* Allows the user to search for a series based on the following parameters.
*
* @param name Name of the series to search for.
*/
@GET("search/series")
Call<SeriesResultsResponse> series(
@Query("name") String name,
@Query("imdbId") String imdbId,
@Query("zap2itId") String zap2itId,
@Header(TheTvdb.HEADER_ACCEPT_LANGUAGE) String languages
);
示例4: seriesHeader
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
@HEAD("series/{id}")
Call<Void> seriesHeader(
@Path("id") int id,
@Header(TheTvdb.HEADER_ACCEPT_LANGUAGE) String language
);
示例5: get
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
@GET("episodes/{id}")
Call<EpisodeResponse> get(
@Path("id") int id,
@Header(TheTvdb.HEADER_ACCEPT_LANGUAGE) String language
);
示例6: TheTVDBApiV2
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
public TheTVDBApiV2(String apikey) throws TheTVDBException {
theTvdb = new TheTvdb(apikey);
}
示例7: episodes
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
/**
* All episodes for a given series. Paginated with 100 results per page.
*
* <p>If a translation is not available null will be returned (such as for episodeName or overview) and the
* associated language property will be ''. Also errors will include '"invalidLanguage": "Some translations were not
* available in the specified language"'.
*
* @param id ID of the series.
* @param language See <a href="http://en.wikipedia.org/wiki/Content_negotiation">Content negotiation</a>.
* @param page Page of results to fetch. Defaults to page 1 if not provided.
*/
@GET("series/{id}/episodes")
Call<EpisodesResponse> episodes(
@Path("id") int id,
@Query("page") Integer page,
@Header(TheTvdb.HEADER_ACCEPT_LANGUAGE) String language
);
示例8: series
import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
/**
* Returns a series records that contains all information known about a particular series id.
*
* <p>If a translation is not available null will be returned (such as for seriesName or overview). Also errors will
* include '"invalidLanguage": "Incomplete or no translation for the given language"'.
*
* @param id ID of the series.
* @param language See <a href="http://en.wikipedia.org/wiki/Content_negotiation">Content negotiation</a>.
*/
@GET("series/{id}")
Call<SeriesResponse> series(
@Path("id") int id,
@Header(TheTvdb.HEADER_ACCEPT_LANGUAGE) String language
);