當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。