当前位置: 首页>>代码示例>>Java>>正文


Java TheTvdb类代码示例

本文整理汇总了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
);
 
开发者ID:UweTrottmann,项目名称:thetvdb-java,代码行数:25,代码来源:TheTvdbSeries.java

示例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
);
 
开发者ID:UweTrottmann,项目名称:thetvdb-java,代码行数:9,代码来源:TheTvdbSeries.java

示例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
);
 
开发者ID:UweTrottmann,项目名称:thetvdb-java,代码行数:13,代码来源:TheTvdbSearch.java

示例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
);
 
开发者ID:UweTrottmann,项目名称:thetvdb-java,代码行数:6,代码来源:TheTvdbSeries.java

示例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
);
 
开发者ID:UweTrottmann,项目名称:thetvdb-java,代码行数:6,代码来源:TheTvdbEpisodes.java

示例6: TheTVDBApiV2

import com.uwetrottmann.thetvdb.TheTvdb; //导入依赖的package包/类
public TheTVDBApiV2(String apikey) throws TheTVDBException {
	theTvdb = new TheTvdb(apikey);
}
 
开发者ID:phdelodder,项目名称:SubTools,代码行数:4,代码来源:TheTVDBApiV2.java

示例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
);
 
开发者ID:UweTrottmann,项目名称:thetvdb-java,代码行数:18,代码来源:TheTvdbSeries.java

示例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
);
 
开发者ID:UweTrottmann,项目名称:thetvdb-java,代码行数:15,代码来源:TheTvdbSeries.java


注:本文中的com.uwetrottmann.thetvdb.TheTvdb类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。