diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-09-16 14:52:13 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-09-16 14:52:13 +0000 |
commit | 1d73231a82545376170868f5bafdf24381748b97 (patch) | |
tree | a0cc1ebd3f61db5412debd8e92a1f6fcf4c14691 /app/src/main/java/ml/docilealligator | |
parent | 6aaef3820cf7d78775e1746c7f065fccd13889af (diff) | |
download | infinity-for-reddit-1d73231a82545376170868f5bafdf24381748b97.tar infinity-for-reddit-1d73231a82545376170868f5bafdf24381748b97.tar.gz infinity-for-reddit-1d73231a82545376170868f5bafdf24381748b97.tar.bz2 infinity-for-reddit-1d73231a82545376170868f5bafdf24381748b97.tar.lz infinity-for-reddit-1d73231a82545376170868f5bafdf24381748b97.tar.xz infinity-for-reddit-1d73231a82545376170868f5bafdf24381748b97.tar.zst infinity-for-reddit-1d73231a82545376170868f5bafdf24381748b97.zip |
Remove unused API.
Diffstat (limited to 'app/src/main/java/ml/docilealligator')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java b/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java index e4e2818e..91b96c70 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/apis/RedditAPI.java @@ -46,39 +46,6 @@ public interface RedditAPI { @GET("comments/{id}.json?raw_json=1") Call<String> getPost(@Path("id") String id); - @GET("{sortType}?raw_json=1") - Call<String> getBestPosts(@Path("sortType") String sortType, @Query("after") String lastItem, @HeaderMap Map<String, String> headers); - - @GET("{sortType}?raw_json=1") - Call<String> getBestPosts(@Path("sortType") String sortType, @Query("t") String sortTime, - @Query("after") String lastItem, @HeaderMap Map<String, String> headers); - - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") - Call<String> getSubredditBestPostsOauth(@Path("subredditName") String subredditName, @Path("sortType") String sortType, - @Query("after") String lastItem, @HeaderMap Map<String, String> headers); - - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") - Call<String> getSubredditBestPostsOauth(@Path("subredditName") String subredditName, @Path("sortType") String sortType, - @Query("t") String sortTime, @Query("after") String lastItem, - @HeaderMap Map<String, String> headers); - - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") - Call<String> getSubredditBestPosts(@Path("subredditName") String subredditName, @Path("sortType") String sortType, - @Query("after") String lastItem); - - @GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25") - Call<String> getSubredditBestPosts(@Path("subredditName") String subredditName, @Path("sortType") String sortType, - @Query("t") String sortTime, @Query("after") String lastItem); - - @GET("user/{username}/{where}.json?&type=links&raw_json=1&limit=25") - Call<String> getUserPostsOauth(@Path("username") String username, @Path("where") String where, - @Query("after") String lastItem, @Query("sort") String sortType, @HeaderMap Map<String, String> headers); - - @GET("user/{username}/{where}.json?&type=links&raw_json=1&limit=25") - Call<String> getUserPostsOauth(@Path("username") String username, @Path("where") String where, - @Query("after") String lastItem, @Query("sort") String sortType, - @Query("t") String sortTime, @HeaderMap Map<String, String> headers); - @GET("user/{username}/submitted.json?raw_json=1&limit=25") Call<String> getUserPosts(@Path("username") String username, @Query("after") String lastItem, @Query("sort") String sortType); @@ -139,48 +106,6 @@ public interface RedditAPI { Call<String> searchUsers(@Query("q") String profileName, @Query("after") String after, @Query("sort") String sort, @Query("include_over_18") int nsfw); - @GET("search.json?include_over_18=1&raw_json=1&type=link") - Call<String> searchPostsOauth(@Query("q") String query, @Query("after") String after, - @Query("sort") String sort, @Query("source") String source, - @HeaderMap Map<String, String> headers); - - @GET("search.json?include_over_18=1&raw_json=1&type=link") - Call<String> searchPostsOauth(@Query("q") String query, @Query("after") String after, - @Query("sort") String sort, @Query("t") String sortTime, - @Query("source") String source, - @HeaderMap Map<String, String> headers); - - @GET("search.json?include_over_18=1&raw_json=1&type=link") - Call<String> searchPosts(@Query("q") String query, @Query("after") String after, - @Query("sort") String sort, @Query("source") String source); - - @GET("search.json?include_over_18=1&raw_json=1&type=link") - Call<String> searchPosts(@Query("q") String query, @Query("after") String after, - @Query("sort") String sort, @Query("t") String sortTime, - @Query("source") String source); - - @GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true") - Call<String> searchPostsInSpecificSubredditOauth(@Path("subredditName") String subredditName, - @Query("q") String query, @Query("sort") String sort, - @Query("after") String after, - @HeaderMap Map<String, String> headers); - - @GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true") - Call<String> searchPostsInSpecificSubredditOauth(@Path("subredditName") String subredditName, - @Query("q") String query, @Query("sort") String sort, - @Query("t") String sortTime, @Query("after") String after, - @HeaderMap Map<String, String> headers); - - @GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true") - Call<String> searchPostsInSpecificSubreddit(@Path("subredditName") String subredditName, - @Query("q") String query, @Query("sort") String sort, - @Query("after") String after); - - @GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true") - Call<String> searchPostsInSpecificSubreddit(@Path("subredditName") String subredditName, - @Query("q") String query, @Query("sort") String sort, - @Query("t") String sortTime, @Query("after") String after); - @FormUrlEncoded @POST("api/comment") Call<String> sendCommentOrReplyToMessage(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params); |