retrofit2.http.QueryMap Java Examples

The following examples show how to use retrofit2.http.QueryMap. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ApiService.java    From MaoWanAndoidClient with Apache License 2.0 5 votes vote down vote up
/**
 * 根据条件 获取 TODO列表
 * @param pageNum 页码从1开始,拼接在url 上
 * @param param status 状态, 1-完成;0未完成; 默认全部展示;
 *              type 创建时传入的类型, 默认全部展示
 *              priority 创建时传入的优先级;默认全部展示
 *              orderby 1:完成日期顺序;2.完成日期逆序;3.创建日期顺序;4.创建日期逆序(默认);
 * @return
 */
/*@GET("/lg/todo/v2/list/{pageNum}/json")
Observable<ResponseBody<TodoData>>getTodoListData(@Path("pageNum") int pageNum,
                                                  @Query("status") int status,
                                                  @Query("type") int type,
                                                  @Query("priority") int priority,
                                                  @Query("orderby") int orderby);*/
@GET("/lg/todo/v2/list/{pageNum}/json")
Observable<ResponseBody<BaseListData<TodoData>>> getTodoListData(@Path("pageNum") int pageNum,
                                                  @QueryMap Map<String,Integer> param);
 
Example #2
Source File: GPlayService.java    From gplaymusic with MIT License 5 votes vote down vote up
@GET("music/{provider}?net=mob&pt=e")
Call<Void> getTrackLocationMJCK(@Header("X-Device-ID") String androidID,
    @Path("provider") Provider provider,
    @Query("opt") StreamQuality quality,
    @Query("slt") String salt,
    @Query("sig") String signature,
    @Query("mjck") String trackID,
    @QueryMap Map<String, String> kwargs);
 
Example #3
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@GET(Constants.FanFou.MENTIONS_MSG_URL)
Observable<HttpResponseData<List<StatusRes>>> getMentions(
        @QueryMap Map<String, String> queryMap);
 
Example #4
Source File: JiraEndPoints.java    From jira-steps-plugin with Apache License 2.0 4 votes vote down vote up
@PUT("rest/api/2/issue/{issueIdOrKey}")
Call<Object> updateIssue(@Path("issueIdOrKey") String issueIdOrKey, @Body Object issue,
    @QueryMap Map<String, String> queryMap);
 
Example #5
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@GET(Constants.FanFou.USER_SHOW_URL)
Observable<HttpResponseData<UserRes>> getUserInfo(@QueryMap Map<String, String> queryMap);
 
Example #6
Source File: IPayment.java    From africastalking-java with MIT License 4 votes vote down vote up
@GET("/query/transaction/fetch")
Call<FetchTransactionsResponse> fetchProductTransactions(@QueryMap HashMap<String, String> query);
 
Example #7
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.ARTIST_TOP_ALBUMS)
Single<Response<AlbumPage>> fetchArtistTopAlbums(@Query("artist") String artist,
                                                     @QueryMap Map<String, Object> options);
 
Example #8
Source File: IApiClient.java    From tenor-android-core with Apache License 2.0 4 votes vote down vote up
@GET("suggest")
Call<Suggestions> getSuggestions(@QueryMap Map<String, String> serviceIds,
                                 @Query("tag") String tag,
                                 @Query("limit") Integer limit,
                                 @Query("type") String type,
                                 @Query("timezone") String utcOffset,
                                 @Query("allterms") boolean isAllTerms);
 
Example #9
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.USER_ARTIST_TRACKS)
Single<Response<TrackPage>> fetchUserArtistTracks(@Query("user") String user,
                                                      @Query("artist") String artist,
                                                      @QueryMap Map<String,Object> options);
 
Example #10
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.ALBUM_INFO)
Single<Response<Album>> fetchAlbumInfo(@Query("artist") String artist,
                                           @Query("album") String album,
                                           @QueryMap Map<String,Object> options);
 
Example #11
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.ALBUM_TAGS)
Single<Response<TagPage>> fetchAlbumTags(@Query("artist") String artist,
                                             @Query("album") String album,
                                             @QueryMap Map<String,Object> options);
 
Example #12
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.LIBRARY_ARTISTS)
Single<Response<ArtistPage>> fetchLibraryArtists(@Query("user") String user,
                                                     @QueryMap Map<String,Object> options);
 
Example #13
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.USER_WEEKLY_TRACK)
Single<Response<TrackPage>> fetchUserWeeklyTrackChart(@Query("user") String user,
                                                          @QueryMap Map<String,Object> options);
 
Example #14
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.USER_LOVED_TRACKS)
Single<Response<TrackPage>> fetchUserLovedTracks(@Query("user") String name,
                                                     @QueryMap Map<String,Object> options);
 
Example #15
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@GET(Constants.FanFou.CONVERSATION_URL)
Observable<HttpResponseData<List<DirectMessagesRes>>> getConversation(
        @QueryMap Map<String, String> queryMap);
 
Example #16
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.USER_PERSONAL_TAGS)
Single<Response<TaggingPage>> fetchUserPersonalTags(@Query("user") String user,
                                                        @Query("tag") String tag,
                                                        @Query("taggingtype") String taggingType,
                                                        @QueryMap Map<String,Object> options);
 
Example #17
Source File: IpServiceForQueryMap.java    From android-advanced-light with MIT License 4 votes vote down vote up
@GET("getIpInfo.php")
Call<IpModel> getIpMsg(@QueryMap Map<String, String> options);
 
Example #18
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@GET(Constants.FanFou.USER_PHOTOS_URL)
Observable<HttpResponseData<List<StatusRes>>> getUserPhotos(
        @QueryMap Map<String, String> queryMap);
 
Example #19
Source File: ApiFactory.java    From xifan with Apache License 2.0 4 votes vote down vote up
@GET(Constants.FanFou.USER_TIMELINE_URL)
Observable<HttpResponseData<List<StatusRes>>> getUserTimeline(
        @QueryMap Map<String, String> queryMap);
 
Example #20
Source File: OpenWeatherMapService.java    From OpenWeatherMap-Android-Library with MIT License 4 votes vote down vote up
@GET(CURRENT)
Call<CurrentWeather> getCurrentWeatherByGeoCoordinates(@QueryMap Map<String, String> options);
 
Example #21
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.GEO_TOP_TRACKS)
Single<Response<TrackPage>> fetchGeoTopTracks(@Query("country") String country,
                                                  @QueryMap Map<String,Object> options);
 
Example #22
Source File: BusController.java    From FakeWeather with Apache License 2.0 4 votes vote down vote up
@GET("http://content.2500city.com/api18/bus/getStationInfo")
Observable<BaseBusResponse<BusLineStation>> getStationInfo(@QueryMap Map<String, String> options);
 
Example #23
Source File: BusController.java    From FakeWeather with Apache License 2.0 4 votes vote down vote up
@GET("http://content.2500city.com/api18/bus/getVicinity")
Observable<BaseBusResponse<BusLineNearby>> getVicinity(@QueryMap Map<String, String> options);
 
Example #24
Source File: BusController.java    From FakeWeather with Apache License 2.0 4 votes vote down vote up
@GET("http://content.2500city.com/api18/bus/getLineInfo")
Observable<BaseBusResponse<BusLineDetail>> getLineInfo(@QueryMap Map<String, String> options);
 
Example #25
Source File: ApiService.java    From RxEasyHttp with Apache License 2.0 4 votes vote down vote up
@PUT()
Observable<ResponseBody> put(@Url String url, @QueryMap Map<String, String> maps);
 
Example #26
Source File: YelpFusionApi.java    From yelp-fusion-android with MIT License 4 votes vote down vote up
@GET("/v3/businesses/search")
Call<SearchResponse> getBusinessSearch(@QueryMap Map<String, String> params);
 
Example #27
Source File: IHttpGetApi.java    From a with GNU General Public License v3.0 4 votes vote down vote up
@GET
Observable<Response<String>> getMap(@Url String url,
                                    @QueryMap(encoded = true) Map<String, String> queryMap,
                                    @HeaderMap Map<String, String> headers);
 
Example #28
Source File: LastFmService.java    From last.fm-api with MIT License 4 votes vote down vote up
@GET(Endpoints.TRACK_INFO)
Single<Response<Track>> fetchTrackInfo(@Query("track") String track,
                                           @Query("artist") String artist,
                                           @QueryMap Map<String,Object> options);
 
Example #29
Source File: ServiceService.java    From easyappointments-mobile-client with GNU General Public License v3.0 4 votes vote down vote up
@GET("services/{id}")
Call<ServiceModel> get(@Path("id") int id, @QueryMap Map<String, String> options);
 
Example #30
Source File: BaseApiService.java    From JD-Test with Apache License 2.0 4 votes vote down vote up
@GET
Flowable<ResponseBody> getTest(@Url String fileUrl,
                                     @QueryMap Map<String, Object> maps);