本文整理匯總了Java中retrofit.http.EncodedQuery類的典型用法代碼示例。如果您正苦於以下問題:Java EncodedQuery類的具體用法?Java EncodedQuery怎麽用?Java EncodedQuery使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
EncodedQuery類屬於retrofit.http包,在下文中一共展示了EncodedQuery類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: idLookup
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* ID lookups are helpful if you have an external ID and want to get the trakt ID and info. This method will search
* for movies, shows, episodes, people, users, and lists.
*
* @param idType Set to any of {@link com.uwetrottmann.trakt.v2.enums.IdType}.
* @param id ID that matches with the type.
*/
@GET("/search")
List<SearchResult> idLookup(
@EncodedQuery("id_type") IdType idType,
@EncodedQuery("id") String id,
@Query("page") Integer page,
@Query("limit") Integer limit
);
示例2: popular
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns the most popular shows. Popularity is calculated using the rating percentage and the number of ratings.
*
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/shows/popular")
List<Show> popular(
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例3: trending
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns all shows being watched right now. Shows with the most users are returned first.
*
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/shows/trending")
List<TrendingShow> trending(
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例4: comments
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns all top level comments for an episode. Most recent comments returned first.
*
* @param showId trakt ID, trakt slug, or IMDB ID. Example: "game-of-thrones".
* @param season Season number.
* @param episode Episode number.
*/
@GET("/shows/{id}/seasons/{season}/episodes/{episode}/comments")
List<Comment> comments(
@Path("id") String showId,
@Path("season") int season,
@Path("episode") int episode,
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例5: popular
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns the most popular movies. Popularity is calculated using the rating percentage and the number of ratings.
*
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/movies/popular")
List<Movie> popular(
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例6: trending
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns all movies being watched right now. Movies with the most users are returned first.
*
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/movies/trending")
List<TrendingMovie> trending(
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例7: comments
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns all top level comments for a show. Most recent comments returned first.
*
* @param showId trakt ID, trakt slug, or IMDB ID. Example: "game-of-thrones".
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/shows/{id}/comments")
List<Comment> comments(
@Path("id") String showId,
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例8: listItems
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* <b>OAuth Optional</b>
*
* <p> Get all items on a custom list. Items can be movies, shows, seasons, episodes, or people.
*/
@GET("/users/{username}/lists/{id}/items")
List<ListEntry> listItems(
@Path("username") String username,
@Path("id") String id,
@EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
示例9: comments
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns all top level comments for a movie. Most recent comments returned first.
*
* @param movieId trakt ID, trakt slug, or IMDB ID. Example: "tron-legacy-2010".
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/movies/{id}/comments")
List<Comment> comments(
@Path("id") String movieId,
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
);
示例10: summary
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns a single episode's details.
*
* @param showId trakt ID, trakt slug, or IMDB ID. Example: "game-of-thrones".
* @param season Season number.
* @param episode Episode number.
*/
@GET("/shows/{id}/seasons/{season}/episodes/{episode}")
Episode summary(
@Path("id") String showId,
@Path("season") int season,
@Path("episode") int episode,
@EncodedQuery("extended") Extended extended
);
示例11: summary
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns a single movie's details.
*
* @param movieId trakt ID, trakt slug, or IMDB ID. Example: "tron-legacy-2010".
*/
@GET("/movies/{id}")
Movie summary(
@Path("id") String movieId,
@EncodedQuery("extended") Extended extended
);
示例12: summary
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns all seasons for a show including the number of episodes in each season.
*
* @param showId trakt ID, trakt slug, or IMDB ID. Example: "game-of-thrones".
*/
@GET("/shows/{id}/seasons")
List<Season> summary(
@Path("id") String showId,
@EncodedQuery("extended") Extended extended
);
示例13: summary
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* Returns a single shows's details.
*
* @param showId trakt ID, trakt slug, or IMDB ID. Example: "game-of-thrones".
*/
@GET("/shows/{id}")
Show summary(
@Path("id") String showId,
@EncodedQuery("extended") Extended extended
);
示例14: historyEpisodes
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* <b>OAuth Optional</b>
*
* <p> Returns episodes that a user has watched with the most recent first.
*
* @param username Example: "sean".
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/users/{username}/history/episodes")
List<HistoryEntry> historyEpisodes(
@Path("username") String username,
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;
示例15: historyMovies
import retrofit.http.EncodedQuery; //導入依賴的package包/類
/**
* <b>OAuth Optional</b>
*
* <p> Returns movies that a user has watched with the most recent first.
*
* @param username Example: "sean".
* @param page Number of page of results to be returned. If {@code null} defaults to 1.
* @param limit Number of results to return per page. If {@code null} defaults to 10.
*/
@GET("/users/{username}/history/movies")
List<HistoryEntry> historyMovies(
@Path("username") String username,
@Query("page") Integer page,
@Query("limit") Integer limit,
@EncodedQuery("extended") Extended extended
) throws OAuthUnauthorizedException;