Advertisement
XaskeL

Untitled

Oct 16th, 2019
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 12.75 KB | None | 0 0
  1. public interface CoubApi {
  2.     @PUT("users/add_device_token")
  3.     @Multipart
  4.     ddb<JsonElement> addDeviceToken(@Part("device_token") String str);
  5.  
  6.     @POST("channels/add_auth")
  7.     ddb<AuthDataVO> addSocialAuth(@Body FetchOAuthDataResponse fetchOAuthDataResponse);
  8.  
  9.     @POST("favourites")
  10.     ddb<Status> addToBookmarks(@Query("id") int i);
  11.  
  12.     @PUT("users/change_channel")
  13.     @Multipart
  14.     ddb<ChangeChannelVO> changeChannel(@Part("channel_id") int i);
  15.  
  16.     @GET("coubs/{permalink}/finalize_status")
  17.     ddb<CoubProcessingCheckStatus> checkCoubProcessing(@Path("permalink") String str);
  18.  
  19.     @GET("sessions/check_uniqueness")
  20.     ddb<CheckUniquenessResponse> checkUniqueness(@Query("session[email]") String str, @Query("session[phone_number]") String str2, @Query("session[provider]") String str3, @Query("session[uid]") String str4);
  21.  
  22.     @GET("coubs/{permalink}/segments")
  23.     ddb<SegmentsVO> coubSegments(@Path("permalink") String str);
  24.  
  25.     @POST("channels")
  26.     @Multipart
  27.     ddb<Object> createChannel(@Part("channel[title]") String str);
  28.  
  29.     @DELETE("channels/delete_channel")
  30.     ddb<Status> deleteActiveChannel(@Query("id") int i, @Query("password") String str);
  31.  
  32.     @DELETE("channels/{channel_id}/backgrounds")
  33.     ddb<Status> deleteChannelBackground(@Path("channel_id") int i);
  34.  
  35.     @DELETE("coubs/{id}")
  36.     ddb<Status> deleteCoub(@Path("id") String str);
  37.  
  38.     @DELETE("abuses/{id}")
  39.     ddb<Status> deleteCoubFlag(@Path("id") int i);
  40.  
  41.     @GET("channels/{channel_id}/edit")
  42.     ddb<EditChannelResponse> editChannel(@Path("channel_id") int i);
  43.  
  44.     @GET("channels/{channel_permalink}/edit")
  45.     ddb<EditChannelResponse> editChannel(@Path("channel_permalink") String str);
  46.  
  47.     @GET("sessions/fetch_oauth_data")
  48.     ddb<FetchOAuthDataResponse> fetchOauthData(@Query("provider") String str, @Query("token") String str2, @Query("uid") String str3, @Query("secret") String str4);
  49.  
  50.     @GET("friends/find")
  51.     ddb<ProviderFriendListVO> findFriendsFromProvider(@Query("providers") ArrayList<String> arrayList);
  52.  
  53.     @POST("abuses")
  54.     ddb<AbuseStatus> flagCoub(@Query("reason") String str, @Query("entity_id") int i, @Query("entity_type") String str2);
  55.  
  56.     @POST("follows/follow_all_friends_from_provider")
  57.     ddb<Status> followAllFriendsFromProvider();
  58.  
  59.     @POST("follows")
  60.     ddb<Status> followChannel(@Query("id") int i);
  61.  
  62.     @POST("follows")
  63.     ddb<Status> followChannel(@Query("id") int i, @Query("channel_id") int i2);
  64.  
  65.     @GET("friends")
  66.     ddb<JsonObject> getAllFriendsPage(@Query("page") int i);
  67.  
  68.     @GET("best/{year}/{type}")
  69.     ddb<CoubsResponse> getBestFeedPage(@Path("year") int i, @Path("type") String str, @Query("page_of") int i2, @Query("per_page") int i3, @Query("api_token") String str2);
  70.  
  71.     @GET("best/{year}/{type}")
  72.     ddb<CoubsResponse> getBestFeedPage(@Path("year") int i, @Path("type") String str, @Query("page") int i2, @Query("api_token") String str2);
  73.  
  74.     @GET("timeline/favourites")
  75.     ddb<CoubsResponse> getBookmarksFeedPage(@Query("order_by") String str, @Query("page") int i, @Query("per_page") int i2);
  76.  
  77.     @GET("channels/{id}")
  78.     ddb<ChannelVO> getChannel(@Path("id") int i);
  79.  
  80.     @GET("channels/{id}/by_permalink")
  81.     ddb<ChannelVO> getChannel(@Path("id") String str);
  82.  
  83.     @GET("timeline/channel/{id}")
  84.     ddb<CoubsResponse> getChannelFeedPage(@Path("id") String str, @Query("coubs_type") Caa caa, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
  85.  
  86.     @GET("timeline/channel/{id}")
  87.     ddb<CoubsResponse> getChannelFeedPageWithStartCoub(@Path("id") String str, @Query("coubs_type") Caa caa, @Query("order_by") String str2, @Query("page_of") int i, @Query("per_page") int i2);
  88.  
  89.     @GET("timeline/{path}")
  90.     ddb<CoubsResponse> getCommonFeedPage(@Path(encoded = true, value = "path") String str, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
  91.  
  92.     @GET("timeline/{path}")
  93.     ddb<CoubsResponse> getCommonFeedPageWithStartCoub(@Path(encoded = true, value = "path") String str, @Query("order_by") String str2, @Query("per_page") int i, @Query("page_of") int i2);
  94.  
  95.     @GET("coubs/{coub_id}")
  96.     ddb<CoubVO> getCoub(@Path("coub_id") int i);
  97.  
  98.     @GET("coubs/{permalink}")
  99.     ddb<CoubVO> getCoub(@Path("permalink") String str);
  100.  
  101.     @GET("search/coubs")
  102.     ddb<CoubsResponse> getCoubSearchFeedPage(@Query("q") String str, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
  103.  
  104.     @GET("search/coubs")
  105.     ddb<CoubsResponse> getCoubSearchFeedPageWithStartCoub(@Query("q") String str, @Query("order_by") String str2, @Query("per_page") int i, @Query("page_of") int i2);
  106.  
  107.     @GET("channels/editorial_channels")
  108.     ddb<ChannelVO[]> getEditorialChannelList();
  109.  
  110.     @GET("channels/featured_channels")
  111.     ddb<ChannelsResponse> getFeaturedChannels(@Query("page") int i, @Query("ids_list") String str);
  112.  
  113.     @GET("action_subjects_data/followers_list")
  114.     ddb<ChannelsResponse> getFollowersPage(@Query("id") int i, @Query("page") int i2);
  115.  
  116.     @GET("action_subjects_data/followings_list")
  117.     ddb<ChannelsResponse> getFollowingPage(@Query("id") int i, @Query("page") int i2);
  118.  
  119.     @GET("friends")
  120.     ddb<FriendsResponse> getFriendsPage(@Query("page") int i, @Query("provider") String str);
  121.  
  122.     @GET("friends/friends_to_follow")
  123.     ddb<JsonObject> getFriendsToFollow(@Query("type") String str, @Query("count") int i);
  124.  
  125.     @GET("action_subjects_data/coub_likes_list")
  126.     ddb<ChannelsResponse> getLikersPage(@Query("id") int i, @Query("page") int i2);
  127.  
  128.     @GET("timeline/likes?all=true")
  129.     ddb<CoubsResponse> getLikesFeedPage(@Query("order_by") String str, @Query("page") int i, @Query("per_page") int i2);
  130.  
  131.     @GET("timeline/likes?all=true")
  132.     ddb<CoubsResponse> getLikesFeedPageWithStartCoub(@Query("order_by") String str, @Query("per_page") int i, @Query("page_of") int i2);
  133.  
  134.     @GET("timeline")
  135.     ddb<CoubsResponse> getMainFeedPage(@Query("page") int i, @Query("per_page") int i2);
  136.  
  137.     @GET("notifications")
  138.     ddb<NotificationResponse> getNotificationPage(@Query("page") int i);
  139.  
  140.     @GET("friends/recommended")
  141.     ddb<FriendsResponse> getRecommendedFriendsPage(@Query("page") int i);
  142.  
  143.     @GET("action_subjects_data/recoubs_list")
  144.     ddb<ChannelsResponse> getRecoubersPage(@Query("id") int i, @Query("page") int i2);
  145.  
  146.     @GET("tags/{tag}/related_channels")
  147.     ddb<ChannelsResponse> getRelatedChannelsPageByTag(@Path("tag") String str, @Query("page") int i);
  148.  
  149.     @GET("tags/{tag}/related_tags")
  150.     ddb<TagsPage> getRelatedTagsByTag(@Path("tag") String str);
  151.  
  152.     @GET("sessions/status")
  153.     ddb<SessionVO> getSession();
  154.  
  155.     @GET("coubs/{permalink}/category_suggestions")
  156.     ddb<CoubSuggestionAnswer> getSuggestions(@Path("permalink") String str, @Query("count") int i);
  157.  
  158.     @GET("timeline/tag/{tag}")
  159.     ddb<CoubsResponse> getTagFeedPage(@Path("tag") String str, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
  160.  
  161.     @GET("timeline/tag/{tag}")
  162.     ddb<CoubsResponse> getTagFeedPageWithStartCoub(@Path("tag") String str, @Query("order_by") String str2, @Query("per_page") int i, @Query("page_of") int i2);
  163.  
  164.     @GET("friends")
  165.     ddb<FriendsResponse> getUnfollowedFriendsPage(@Query("page") int i, @Query("provider") String str, @Query("omit_following") boolean z);
  166.  
  167.     @GET("weekly_digests/")
  168.     ddb<WeeklyVO> getWeeklyDigests();
  169.  
  170.     @GET("weekly_digests/{week}/coubs")
  171.     ddb<CoubsResponse> getWeeklyFeedPage(@Path("week") int i, @Query("api_token") String str, @Query("page") int i2);
  172.  
  173.     @POST("follows/mass_follow")
  174.     @Multipart
  175.     ddb<Status> massFollow(@Part("ids_list[following][]") String[] strArr, @Part("ids_list[not_following]") String[] strArr2);
  176.  
  177.     @POST("channels/notifications_viewed")
  178.     ddb<Object> notifyNotificationsViewed();
  179.  
  180.     @PUT("passwords/recover_password")
  181.     @Multipart
  182.     ddb<Status> recoverPassword(@Part("session[email]") String str);
  183.  
  184.     @DELETE("favourites")
  185.     ddb<Status> removeFromBookmarks(@Query("id") int i);
  186.  
  187.     @DELETE("channels/remove_auth")
  188.     ddb<AuthDataVO> removeSocialAuth(@Query("id") int i, @Query("session[provider]") String str);
  189.  
  190.     @PUT("passwords/reset_password")
  191.     @Multipart
  192.     ddb<UserVO> resetPasswordRequest(@Part("email") String str, @Part("confirmation_token") String str2, @Part("password") String str3);
  193.  
  194.     @PUT("channels/{channel_id}/backgrounds/set_previous")
  195.     ddb<Status> restorePreviousBackground(@Path("channel_id") int i);
  196.  
  197.     @GET("search/autocomplete")
  198.     ddb<SearchAutocompleteVO> searchAutocomplete(@Query("q") CharSequence charSequence);
  199.  
  200.     @GET("search/channels?order_by=likes_count")
  201.     ddb<ChannelPage> searchChannels(@Query("q") String str, @Query("page") int i);
  202.  
  203.     @GET("search/coubs")
  204.     ddb<CoubsPage> searchCoubs(@Query("q") String str, @Query("page") int i);
  205.  
  206.     @GET("search/coubs")
  207.     ddb<CoubsPage> searchCoubs(@Query("q") String str, @Query("order_by") String str2, @Query("page") int i);
  208.  
  209.     @GET("tags/search?order_by=likes_count")
  210.     ddb<List<TagVO>> searchTags(@Query("title") String str);
  211.  
  212.     @POST("channels/{channel_id}/backgrounds")
  213.     ddb<Status> setChannelBackgroundCoub(@Path("channel_id") int i, @Query("background[coub]") String str, @Query("background[offset_y]") int i2);
  214.  
  215.     @POST("channels/{channel_id}/backgrounds")
  216.     @Multipart
  217.     ddb<Status> setChannelBackgroundImage(@Path("channel_id") int i, @Part C13354b bVar);
  218.  
  219.     @POST("likes")
  220.     ddb<Status> setLike(@Query("id") int i, @Query("channel_id") int i2, @Query("source") String str, @Deprecated @Query("type") String str2);
  221.  
  222.     @POST("recoubs")
  223.     ddb<Status> setRecoubCoub(@Query("recoub_to_id") int i, @Query("channel_id") int i2);
  224.  
  225.     @PUT("sessions/signin")
  226.     ddb<UserVO> signIn(@Body FetchOAuthDataResponse fetchOAuthDataResponse);
  227.  
  228.     @POST("sessions/signup")
  229.     ddb<UserVO> signUp(@Body FetchOAuthDataResponse fetchOAuthDataResponse);
  230.  
  231.     @POST("channel_notifications_subscriptions")
  232.     ddb<Status> subscribeToChannelNotifications(@Query("channel_id") int i);
  233.  
  234.     @DELETE("follows")
  235.     ddb<Status> unFollowChannel(@Query("id") int i);
  236.  
  237.     @DELETE("follows")
  238.     ddb<Status> unFollowChannel(@Query("id") int i, @Query("channel_id") int i2);
  239.  
  240.     @DELETE("likes")
  241.     ddb<Status> unsetLike(@Query("id") int i, @Query("channel_id") int i2, @Deprecated @Query("type") String str);
  242.  
  243.     @DELETE("recoubs")
  244.     ddb<Status> unsetRecoubCoub(@Query("id") int i, @Query("channel_id") int i2);
  245.  
  246.     @DELETE("channel_notifications_subscriptions")
  247.     ddb<Status> unsubscribeFromChannelNotifications(@Query("channel_id") int i);
  248.  
  249.     @PUT("channels/update_info")
  250.     @Multipart
  251.     ddb<ChannelVO> updateChannelInfo(@Part("id") int i, @Part("channel[title]") String str, @Part("channel[description]") String str2, @Part("channel[homepage]") String str3, @Part("channel[youtube]") String str4, @Part("channel[tumblr]") String str5, @Part("channel[vimeo]") String str6, @Part("channel[autopost_coub_to_facebook]") boolean z, @Part("channel[autopost_recoub_to_facebook]") boolean z2, @Part("channel[autopost_coub_to_twitter]") boolean z3, @Part("channel[autopost_recoub_to_twitter]") boolean z4, @Part("channel[autopost_coub_to_vkontakte]") boolean z5, @Part("channel[autopost_recoub_to_vkontakte]") boolean z6, @Part("channel[hide_owner]") boolean z7);
  252.  
  253.     @POST("coubs/{permalink}/update_info")
  254.     @Multipart
  255.     ddb<CoubVO> updateCoubInfo(@Path("permalink") String str, @Part("id") String str2, @Part("coub[channel_id]") int i, @Part("coub[title]") String str3, @Part("coub[tags]") String str4, @Part("coub[original_visibility_type]") String str5, @Part("coub[categories][]") String[] strArr);
  256.  
  257.     @PUT("users/update_phone_number")
  258.     ddb<JsonObject> updatePhoneNumber();
  259.  
  260.     @PUT("users/update_phone_number")
  261.     @Multipart
  262.     ddb<JsonObject> updatePhoneNumber(@Part("token") String str, @Part("provider") String str2);
  263.  
  264.     @PUT("users/update_private_info")
  265.     @Multipart
  266.     ddb<Status> updatePrivateInfo(@Part("user[password]") String str, @Part("user[password_changing]") String str2);
  267.  
  268.     @PUT("users/update_regular_info")
  269.     @Multipart
  270.     ddb<SessionVO> updateRegularInfo(@Part("user[email]") String str, @Part("user[sex]") String str2, @Part("user[birthday]") String str3, @Part("user[password]") String str4, @Part("user[city]") String str5);
  271.  
  272.     @POST("channels/upload_avatar")
  273.     @Multipart
  274.     ddb<ChannelVO> uploadAvatar(@Part C13354b bVar, @Part("channel[id]") int i);
  275.  
  276.     @POST("upload/video")
  277.     @Multipart
  278.     ddb<UploadVideoStatus> uploadVideo(@Part("url") String str);
  279.  
  280.     @GET("upload/video/{id}/status")
  281.     ddb<Data> uploadVideoStatus(@Path("id") String str);
  282.  
  283.     @GET("channels/validate_permalink")
  284.     ddb<PermalinkCheckStatus> validateChannelPermalink(@Query("channel[permalink]") String str);
  285. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement