本文整理汇总了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;