Guest User

JVApiService

a guest
May 11th, 2024
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 15.42 KB | None | 0 0
  1. package com.jeuxvideo.api.web;
  2.  
  3. import com.google.firebase.analytics.FirebaseAnalytics;
  4. import com.google.firebase.perf.FirebasePerformance;
  5. import com.jeuxvideo.models.api.ads.SponsoWrapperWrapper;
  6. import com.jeuxvideo.models.api.articles.Article;
  7. import com.jeuxvideo.models.api.articles.Folder;
  8. import com.jeuxvideo.models.api.captcha.CaptchaSession;
  9. import com.jeuxvideo.models.api.comment.UserComment;
  10. import com.jeuxvideo.models.api.common.Content;
  11. import com.jeuxvideo.models.api.common.DetailedContent;
  12. import com.jeuxvideo.models.api.common.JVContentBean;
  13. import com.jeuxvideo.models.api.common.Summary;
  14. import com.jeuxvideo.models.api.config.Config;
  15. import com.jeuxvideo.models.api.details.CommentDetails;
  16. import com.jeuxvideo.models.api.details.ReviewDetails;
  17. import com.jeuxvideo.models.api.details.StoreDetails;
  18. import com.jeuxvideo.models.api.forum.Forum;
  19. import com.jeuxvideo.models.api.forum.Topic;
  20. import com.jeuxvideo.models.api.games.Game;
  21. import com.jeuxvideo.models.api.games.GameDetails;
  22. import com.jeuxvideo.models.api.games.GameRelease;
  23. import com.jeuxvideo.models.api.games.Image;
  24. import com.jeuxvideo.models.api.news.News;
  25. import com.jeuxvideo.models.api.premium.Signature;
  26. import com.jeuxvideo.models.api.premium.SignatureStatus;
  27. import com.jeuxvideo.models.api.report.ReasonState;
  28. import com.jeuxvideo.models.api.report.Report;
  29. import com.jeuxvideo.models.api.review.AbstractReview;
  30. import com.jeuxvideo.models.api.review.Review;
  31. import com.jeuxvideo.models.api.review.ReviewedGame;
  32. import com.jeuxvideo.models.api.review.Reviews;
  33. import com.jeuxvideo.models.api.review.UserReviews;
  34. import com.jeuxvideo.models.api.search.Search;
  35. import com.jeuxvideo.models.api.store.Stores;
  36. import com.jeuxvideo.models.api.user.Favorites;
  37. import com.jeuxvideo.models.api.user.Machines;
  38. import com.jeuxvideo.models.api.user.NewsLetters;
  39. import com.jeuxvideo.models.api.user.Page;
  40. import com.jeuxvideo.models.api.user.Profile;
  41. import com.jeuxvideo.models.api.user.User;
  42. import com.jeuxvideo.models.api.user.UserLogin;
  43. import com.jeuxvideo.models.api.user.UserRegister;
  44. import com.jeuxvideo.models.api.user.UserValidate;
  45. import com.jeuxvideo.models.api.videos.Video;
  46. import com.jeuxvideo.models.api.wikis.Wiki;
  47. import okhttp3.RequestBody;
  48. import retrofit2.Call;
  49. import retrofit2.http.Body;
  50. import retrofit2.http.DELETE;
  51. import retrofit2.http.GET;
  52. import retrofit2.http.HTTP;
  53. import retrofit2.http.Header;
  54. import retrofit2.http.POST;
  55. import retrofit2.http.PUT;
  56. import retrofit2.http.Path;
  57. import retrofit2.http.Query;
  58. import retrofit2.http.Url;
  59.  
  60. /* loaded from: /home/alex/Téléchargements/com.jeuxvideo-deobfuscated/classes5.dex */
  61. public interface JVApiService {
  62.     @POST("contents/{contentID}/comments")
  63.     Call<UserComment> addComment(@Path("contentID") String str, @Body UserComment.Body body);
  64.  
  65.     @POST("contents/{contentID}/comments/{commentID}/vote")
  66.     Call<UserComment> addCommentVote(@Path("contentID") String str, @Path("commentID") String str2, @Body UserComment.Vote vote);
  67.  
  68.     @POST("accounts/{accountId}/favorites/games")
  69.     Call<Content<Game>> addFavorisGames(@Path("accountId") String str, @Body Game.Keys keys);
  70.  
  71.     @POST("contents/{contentID}/comments/{commentID}/answers")
  72.     Call<UserComment> addReply(@Path("contentID") String str, @Path("commentID") String str2, @Body UserComment.Body body);
  73.  
  74.     @POST("games/{id}/{machine}/reviews/users")
  75.     Call<Review> addReview(@Path("id") int i, @Path("machine") String str, @Body AbstractReview.Body body);
  76.  
  77.     @GET("general/config")
  78.     Call<Config> config(@Header("If-None-Match") String str);
  79.  
  80.     @DELETE("contents/{contentID}/comments/{commentID}")
  81.     Call<Void> deleteComment(@Path("contentID") String str, @Path("commentID") String str2);
  82.  
  83.     @DELETE("contents/{contentID}/comments/{commentID}/vote")
  84.     Call<Void> deleteCommentVote(@Path("contentID") String str, @Path("commentID") String str2);
  85.  
  86.     @HTTP(hasBody = true, method = FirebasePerformance.HttpMethod.DELETE, path = "accounts/{accountId}/favorites/forums")
  87.     Call<Content<Forum>> deleteFavorisForum(@Path("accountId") String str, @Body Forum.Ids ids);
  88.  
  89.     @HTTP(hasBody = true, method = FirebasePerformance.HttpMethod.DELETE, path = "accounts/{accountId}/favorites/games")
  90.     Call<Content<Game>> deleteFavorisGames(@Path("accountId") String str, @Body Game.Keys keys);
  91.  
  92.     @HTTP(hasBody = true, method = FirebasePerformance.HttpMethod.DELETE, path = "accounts/{accountId}/favorites/topics")
  93.     Call<Content<Topic>> deleteFavorisTopics(@Path("accountId") String str, @Body Topic.Ids ids);
  94.  
  95.     @GET("accounts/{accountId}")
  96.     Call<User> getAccount(@Path("accountId") String str);
  97.  
  98.     @GET("accounts/{accountId}/favorites/games/all")
  99.     Call<Content<Game>> getAllFavorisGames(@Path("accountId") String str);
  100.  
  101.     @GET("contents/{id}")
  102.     Call<Article> getArticle(@Path("id") int i);
  103.  
  104.     @GET(Page.CONTENTS_ARTIFACT)
  105.     Call<Content<Article>> getArticleList(@Query("machines") String str, @Query("page") int i, @Query("perPage") int i2, @Query("types") String str2, @Header("If-None-Match") String str3);
  106.  
  107.     @GET("captcha/start")
  108.     Call<CaptchaSession> getCaptcha(@Query("nb") int i);
  109.  
  110.     @GET("contents/chronicles")
  111.     Call<Summary> getChroniclesSummary(@Query("machines") String str);
  112.  
  113.     @GET("contents/{contentID}/comments/{commentID}")
  114.     Call<UserComment> getComment(@Path("contentID") String str, @Path("commentID") String str2);
  115.  
  116.     @GET("contents/{contentID}/comments/{commentID}/answers")
  117.     Call<DetailedContent<UserComment, CommentDetails>> getCommentAnswers(@Path("contentID") String str, @Path("commentID") String str2);
  118.  
  119.     @GET("contents/{contentID}/comments")
  120.     Call<DetailedContent<UserComment, CommentDetails>> getComments(@Path("contentID") String str, @Query("page") int i, @Query("perPage") int i2);
  121.  
  122.     @GET("contents/{id}")
  123.     Call<JVContentBean> getContentBean(@Path("id") int i);
  124.  
  125.     @GET(Page.CONTENTS_ARTIFACT)
  126.     Call<Content<JVContentBean>> getContentList(@Query("categories") String str, @Query("types") String str2, @Query("events") String str3, @Query("machines") String str4, @Query("page") int i, @Query("perPage") int i2, @Header("If-None-Match") String str5);
  127.  
  128.     @GET("accounts/{accountId}/report")
  129.     Call<ReasonState> getCurrentAccountReport(@Path("accountId") String str);
  130.  
  131.     @GET("contents/{contentID}/comments/{commentID}/report")
  132.     Call<ReasonState> getCurrentCommentReport(@Path("contentID") String str, @Path("commentID") String str2);
  133.  
  134.     @GET("games/{id}/{machine}/reviews/users/{reviewId}/report")
  135.     Call<ReasonState> getCurrentReviewReport(@Path("id") int i, @Path("machine") String str, @Path("reviewId") int i2);
  136.  
  137.     @GET("accounts/{accountId}/favorites")
  138.     Call<Favorites> getFavoris(@Path("accountId") String str);
  139.  
  140.     @GET("accounts/{accountId}/favorites/forums")
  141.     Call<Content<Forum>> getFavorisForum(@Path("accountId") String str, @Query("page") int i, @Query("perPage") int i2);
  142.  
  143.     @GET("accounts/{accountId}/favorites/games")
  144.     Call<Content<Game>> getFavorisGames(@Path("accountId") String str, @Query("page") int i, @Query("perPage") int i2);
  145.  
  146.     @GET("accounts/{accountId}/favorites/topics")
  147.     Call<Content<Topic>> getFavorisTopics(@Path("accountId") String str, @Query("page") int i, @Query("perPage") int i2);
  148.  
  149.     @GET("contents/{id}")
  150.     Call<Folder> getFolder(@Path("id") int i);
  151.  
  152.     @GET("games/{id}/{machine}")
  153.     Call<Game> getGame(@Path("id") int i, @Path("machine") String str);
  154.  
  155.     @GET("games/{id}/{machine}/details")
  156.     Call<GameDetails> getGameDetails(@Path("id") int i, @Path("machine") String str);
  157.  
  158.     @GET("games/{id}/{machine}/images")
  159.     Call<Content<Image>> getGameImages(@Path("id") int i, @Path("machine") String str, @Query("page") int i2, @Query("perPage") int i3);
  160.  
  161.     @GET("games/{type}")
  162.     Call<Content<Game>> getGameList(@Path("type") String str, @Query("machines") String str2, @Query("machine") String str3, @Query("genre") String str4, @Query("mode") String str5, @Query("page") int i, @Query("perPage") int i2, @Header("If-None-Match") String str6);
  163.  
  164.     @GET("games/{id}/{machine}/news")
  165.     Call<Content<JVContentBean>> getGameNews(@Path("id") int i, @Path("machine") String str, @Query("page") int i2, @Query("perPage") int i3);
  166.  
  167.     @GET("games/releases")
  168.     Call<Content<GameRelease>> getGameReleaseList(@Query("month") String str, @Query("year") String str2, @Query("machines") String str3, @Query("page") int i, @Query("perPage") int i2, @Header("If-None-Match") String str4);
  169.  
  170.     @GET("games/{id}/{machine}/reviews/users/{review}")
  171.     Call<Review> getGameReview(@Path("id") int i, @Path("machine") String str, @Path("review") int i2);
  172.  
  173.     @GET("games/{id}/any/reviews")
  174.     Call<DetailedContent<Reviews, ReviewDetails>> getGameReviews(@Path("id") int i);
  175.  
  176.     @GET("games/{id}/{machine}/reviews")
  177.     Call<UserReviews> getGameReviews(@Path("id") int i, @Path("machine") String str);
  178.  
  179.     @GET("contents/games")
  180.     Call<Summary> getGameSummary(@Query("machines") String str);
  181.  
  182.     @GET("games/{id}/{machine}/reviews/users")
  183.     Call<DetailedContent<Review, ReviewDetails>> getGameUserReviews(@Path("id") int i, @Path("machine") String str, @Query("page") int i2, @Query("perPage") int i3);
  184.  
  185.     @GET("games/{id}/{machine}/videos")
  186.     Call<Content<Video>> getGameVideos(@Path("id") int i, @Path("machine") String str, @Query("page") int i2, @Query("perPage") int i3);
  187.  
  188.     @GET("games/{id}/{machine}/wikis")
  189.     Call<Content<Wiki>> getGameWikis(@Path("id") int i, @Path("machine") String str, @Query("page") int i2, @Query("perPage") int i3);
  190.  
  191.     @GET("contents/trending")
  192.     Call<Content<JVContentBean>> getHeadlineList(@Query("machines") String str, @Query("page") int i, @Query("perPage") int i2, @Header("If-None-Match") String str2);
  193.  
  194.     @GET("contents/hightech")
  195.     Call<Summary> getHighTechSummary(@Query("machines") String str);
  196.  
  197.     @GET("games/{id}/{machine}/light")
  198.     Call<Game> getLightGame(@Path("id") int i, @Path("machine") String str);
  199.  
  200.     @GET("contents/{id}")
  201.     Call<News> getNews(@Path("id") int i);
  202.  
  203.     @GET("contents/hightech")
  204.     Call<Content<Article>> getNewsHighTech(@Query("page") int i, @Query("perPage") int i2, @Header("If-None-Match") String str);
  205.  
  206.     @GET("accounts/{accountId}/newsletter/status")
  207.     Call<NewsLetters> getNewsLettersStatus(@Path("accountId") String str);
  208.  
  209.     @GET("accounts/{accountId}/page/contents")
  210.     Call<Content<JVContentBean>> getPageContents(@Path("accountId") String str, @Query("page") int i, @Query("perPage") int i2);
  211.  
  212.     @GET("accounts/{accountId}/page/reviews")
  213.     Call<Content<ReviewedGame>> getPageReviews(@Path("accountId") String str, @Query("page") int i, @Query("perPage") int i2);
  214.  
  215.     @GET("accounts/{accountId}/profile")
  216.     Call<Profile> getProfile(@Path("accountId") String str);
  217.  
  218.     @GET("accounts/{accountId}/page")
  219.     Call<Page> getProfilePage(@Path("accountId") String str);
  220.  
  221.     @GET("contents/{id}/news")
  222.     Call<Content<News>> getRelatedNews(@Path("id") int i, @Query("page") int i2, @Query("perPage") int i3);
  223.  
  224.     @GET("contents/{id}/videos")
  225.     Call<Content<Video>> getRelatedVideos(@Path("id") int i, @Query("page") int i2, @Query("perPage") int i3);
  226.  
  227.     @GET("contents/{id}/wikis")
  228.     Call<Content<Wiki>> getRelatedWikis(@Path("id") int i, @Query("page") int i2, @Query("perPage") int i3);
  229.  
  230.     @GET
  231.     Call<News> getSpecificNews(@Url String str);
  232.  
  233.     @GET("games/{id}/{machine}/stores")
  234.     Call<DetailedContent<Stores, StoreDetails>> getStores(@Path("id") int i, @Path("machine") String str);
  235.  
  236.     @GET("contents/hightech")
  237.     Call<Summary> getTechList(@Query("page") int i, @Query("perPage") int i2, @Header("If-None-Match") String str);
  238.  
  239.     @GET("contents/wikis")
  240.     Call<Content<Wiki>> getTopWikis(@Header("If-None-Match") String str);
  241.  
  242.     @GET("contents/{contentID}/comments/tops")
  243.     Call<DetailedContent<UserComment, CommentDetails>> getTopsComments(@Path("contentID") String str);
  244.  
  245.     @GET("videos/{id}")
  246.     Call<Video> getVideo(@Path("id") int i);
  247.  
  248.     @GET(Page.CONTENTS_ARTIFACT)
  249.     Call<Content<Video>> getVideoList(@Query("categories") String str, @Query("chronicles") String str2, @Query("machines") String str3, @Query("types") String str4, @Query("page") int i, @Query("perPage") int i2, @Header("If-None-Match") String str5);
  250.  
  251.     @GET("contents/videos")
  252.     Call<Summary> getVideosSummary(@Query("machines") String str);
  253.  
  254.     @POST("accounts/login")
  255.     Call<User> login(@Body UserLogin userLogin);
  256.  
  257.     @POST("accounts/logout")
  258.     Call<Void> logout();
  259.  
  260.     @POST("accounts/register")
  261.     Call<Void> register(@Body UserRegister userRegister, @Header("Jvc-Auth-Token") String str);
  262.  
  263.     @POST("accounts/reset")
  264.     Call<Void> reinitPassword(@Body UserLogin userLogin);
  265.  
  266.     @POST("accounts/{accountId}/report")
  267.     Call<Void> reportAccount(@Path("accountId") String str, @Body Report report);
  268.  
  269.     @POST("contents/{contentID}/comments/{commentID}/report")
  270.     Call<Void> reportComment(@Path("contentID") String str, @Path("commentID") String str2, @Body Report report);
  271.  
  272.     @POST("games/{id}/{machine}/reviews/users/{reviewId}/report")
  273.     Call<Void> reportReview(@Path("id") int i, @Path("machine") String str, @Path("reviewId") int i2, @Body Report report);
  274.  
  275.     @POST("contents/{contentID}/comments/{commentID}")
  276.     Call<UserComment> restoreComment(@Path("contentID") String str, @Path("commentID") String str2, @Body String str3);
  277.  
  278.     @PUT("accounts/me/profile/description")
  279.     Call<Profile> saveDescription(@Body Profile.SaveDesc saveDesc);
  280.  
  281.     @PUT("accounts/me/profile/excluded-machines")
  282.     Call<Profile> saveExcludedMachines(@Body Machines machines);
  283.  
  284.     @PUT("accounts/me/profile/machines")
  285.     Call<Profile> saveMachines(@Body Machines machines);
  286.  
  287.     @GET(FirebaseAnalytics.Event.SEARCH)
  288.     Call<Search> search(@Query("q") String str);
  289.  
  290.     @GET("search/articles")
  291.     Call<Content<Article>> searchArticles(@Query("q") String str, @Query("page") int i, @Query("perPage") int i2);
  292.  
  293.     @GET("search/games/autocomplete")
  294.     Call<Content<Game>> searchAutocomplete(@Query("q") String str);
  295.  
  296.     @GET("search/games")
  297.     Call<Content<Game>> searchGames(@Query("q") String str, @Query("page") int i, @Query("perPage") int i2);
  298.  
  299.     @GET("search/news")
  300.     Call<Content<News>> searchNews(@Query("q") String str, @Query("page") int i, @Query("perPage") int i2);
  301.  
  302.     @GET("search/videos")
  303.     Call<Content<Video>> searchVideos(@Query("q") String str, @Query("page") int i, @Query("perPage") int i2);
  304.  
  305.     @GET("search/wikis")
  306.     Call<Content<Wiki>> searchWikis(@Query("q") String str, @Query("page") int i, @Query("perPage") int i2);
  307.  
  308.     @GET("general/nativeads")
  309.     Call<SponsoWrapperWrapper> sponso(@Header("If-None-Match") String str);
  310.  
  311.     @PUT("contents/{contentID}/comments/{commentID}")
  312.     Call<UserComment> updateComment(@Path("contentID") String str, @Path("commentID") String str2, @Body UserComment.Body body);
  313.  
  314.     @POST("accounts/{accountId}/newsletter/update")
  315.     Call<NewsLetters> updateNewsLettersStatus(@Path("accountId") String str, @Body NewsLetters newsLetters);
  316.  
  317.     @PUT("accounts/me/avatar")
  318.     Call<User> uploadAvatar(@Body RequestBody requestBody);
  319.  
  320.     @PUT("accounts/me/cover")
  321.     Call<User> uploadCover(@Body RequestBody requestBody);
  322.  
  323.     @POST("accounts/confirm")
  324.     Call<User> validateAccount(@Body UserValidate userValidate);
  325.  
  326.     @POST("general/stores/android/validation")
  327.     Call<SignatureStatus> validateSignature(@Body Signature signature);
  328. }
Advertisement
Add Comment
Please, Sign In to add comment