本文整理了Java中retrofit.http.Query.<init>
方法的一些代码示例,展示了Query.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.<init>
方法的具体详情如下:
包路径:retrofit.http.Query
类名称:Query
方法名:<init>
暂无
代码示例来源:origin: konmik/nucleus
@GET("/jokes/random/10")
Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName);
}
代码示例来源:origin: konmik/nucleus
@GET("/jokes/random/10")
Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName);
}
代码示例来源:origin: naman14/Timber
@Headers("Cache-Control: public")
@GET("/lyrics")
void getLyrics(@Query("artist") String artist, @Query("title") String title, Callback<String> callback);
}
代码示例来源:origin: naman14/Timber
@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ALBUM)
void getAlbumInfo(@Query("artist") String artist, @Query("album") String album, Callback<AlbumInfo> callback);
代码示例来源:origin: commonsguy/cw-omnibus
@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
}
代码示例来源:origin: commonsguy/cw-omnibus
@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
@GET("/2.2/questions?order=desc&sort=creation&site=stackoverflow&tagged=android")
代码示例来源:origin: commonsguy/cw-omnibus
@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
}
代码示例来源:origin: commonsguy/cw-omnibus
@GET("/2.1/questions?order=desc&sort=creation&site=stackoverflow")
void questions(@Query("tagged") String tags, Callback<SOQuestions> cb);
}
代码示例来源:origin: commonsguy/cw-omnibus
@GET("/2.2/questions?order=desc&sort=creation&site=stackoverflow&tagged=android")
void search(@Query("intitle") String search, Callback<SOQuestions> cb);
}
代码示例来源:origin: aa112901/remusic
@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ALBUM)
void getAlbumInfo(@Query("artist") String artist, @Query("album") String album, Callback<AlbumInfo> callback);
代码示例来源:origin: konmik/nucleus
@GET("/jokes/{id}")
Observable<ItemResponse> getItem(@Query("firstName") String firstName, @Query("lastName") String lastName, @Path("id") int id);
}
代码示例来源:origin: konmik/nucleus
@GET("/jokes/random/10")
Observable<Response> getItems(@Query("firstName") String firstName, @Query("lastName") String lastName, @Header("pageNumber") int pageNumberIgnored);
代码示例来源:origin: naman14/Timber
@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ARTIST)
void getArtistInfo(@Query("artist") String artist, Callback<ArtistInfo> callback);
代码示例来源:origin: aa112901/remusic
@Headers("Cache-Control: public")
@GET(BASE_PARAMETERS_ARTIST)
void getArtistInfo(@Query("artist") String artist, Callback<ArtistInfo> callback);
代码示例来源:origin: spinnaker/kayenta
@GET("/api/v2/fetch")
List<AtlasResults> fetch(@Query("q") String q,
@Query("s") Long start,
@Query("e") Long end,
@Query("step") String step,
@Query("id") String id,
@Query("kayentaQueryUUID") String kayentaQueryUUID);
}
代码示例来源:origin: spinnaker/kayenta
@GET("/api/v1/query")
DatadogTimeSeries getTimeSeries(@Query("api_key") String apiKey,
@Query("application_key") String applicationKey,
@Query("from") int startTimestamp,
@Query("to") int endTimestamp,
@Query("query") String query);
代码示例来源:origin: spinnaker/kayenta
@GET("/render")
List<GraphiteResults> rangeQuery(@Query(value = "target", encodeValue = false) String target,
@Query("from") long from,
@Query("until") long until,
@Query("format") String format);
代码示例来源:origin: spinnaker/kayenta
@GET("/api/v1/query_range")
List<PrometheusResults> rangeQuery(@Query("query") String query,
@Query("start") String start,
@Query("end") String end,
@Query("step") Long step);
代码示例来源:origin: spinnaker/kayenta
@GET("/api/v1/metrics")
DatadogMetricDescriptorsResponse getMetrics(@Query("api_key") String apiKey,
@Query("application_key") String applicationKey,
@Query("from") long from);
}
代码示例来源:origin: spinnaker/kayenta
@Headers("Accept: application/json")
@GET("/v1/accounts/{application_key}/query")
NewRelicTimeSeries getTimeSeries(@Header("X-Query-Key") String apiKey,
@Path("application_key") String applicationKey, @Query("nrql") String query);
}
内容来源于网络,如有侵权,请联系作者删除!