sebbu

com.book.write.net.api.NovelApi

Sep 2nd, 2020
2,279
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.book.write.net.api;
  2.  
  3. import com.book.write.banner.bean.WriteBannerList;
  4. import com.book.write.banner.bean.WriteContestsList;
  5. import com.book.write.model.ContestId;
  6. import com.book.write.model.Language;
  7. import com.book.write.model.WelcomeContest;
  8. import com.book.write.model.Writer;
  9. import com.book.write.model.chapter.LatestChapterName;
  10. import com.book.write.model.novel.ActArticlelimit;
  11. import com.book.write.model.novel.AuthorThounght;
  12. import com.book.write.model.novel.ChapterVerLogInfo;
  13. import com.book.write.model.novel.ChapterVerLogList;
  14. import com.book.write.model.novel.FineLayoutSwitchBean;
  15. import com.book.write.model.novel.Novel;
  16. import com.book.write.model.novel.NovelBookRelationShipInfo;
  17. import com.book.write.model.novel.NovelBookRoleTypeInfo;
  18. import com.book.write.model.novel.NovelCategory;
  19. import com.book.write.model.novel.NovelCheckShortTypeBean;
  20. import com.book.write.model.novel.NovelContest;
  21. import com.book.write.model.novel.NovelCountryBean;
  22. import com.book.write.model.novel.NovelDelBookRoleBean;
  23. import com.book.write.model.novel.NovelExtraInfo;
  24. import com.book.write.model.novel.NovelRange;
  25. import com.book.write.model.novel.NovelRolesInfo;
  26. import com.book.write.model.novel.NovelShortTypesBean;
  27. import com.book.write.model.novel.NovelStatsSwitchBean;
  28. import com.book.write.model.novel.NovelStoryTypeBean;
  29. import com.book.write.model.novel.NovelSurePubChapterBean;
  30. import com.book.write.model.novel.NovelTagsBean;
  31. import com.book.write.model.novel.NovelTopicBean;
  32. import com.book.write.model.novel.NovelUpdateBookInfo;
  33. import com.book.write.model.novel.NovelsStatsSwitchBean;
  34. import com.book.write.model.novel.TopTags;
  35. import com.book.write.model.volume.Volume;
  36. import com.book.write.net.Response;
  37. import com.book.write.net.Result;
  38. import java.util.HashMap;
  39. import java.util.List;
  40. import p517io.reactivex.Flowable;
  41. import p517io.reactivex.Single;
  42. import retrofit2.p622b.Field;
  43. import retrofit2.p622b.FieldMap;
  44. import retrofit2.p622b.FormUrlEncoded;
  45. import retrofit2.p622b.GET;
  46. import retrofit2.p622b.POST;
  47. import retrofit2.p622b.Path;
  48. import retrofit2.p622b.Query;
  49.  
  50. public interface NovelApi {
  51.     @FormUrlEncoded
  52.     @POST("/api/novel/changeShorttype")
  53.     Single<Response> changeShortType(@FieldMap HashMap<String, String> hashMap);
  54.  
  55.     @GET("/api/author/checkCountry/{areaCode}")
  56.     Single<Result<NovelCountryBean.ResultBean>> checkCountry(@Path("areaCode") String str);
  57.  
  58.     @FormUrlEncoded
  59.     @POST("/api/novel/checkBookTitle")
  60.     Single<Response> checkNovelName(@Field("title") String str);
  61.  
  62.     @FormUrlEncoded
  63.     @POST("/api/novel/create")
  64.     Single<Response<Novel>> createNovel(@FieldMap HashMap<String, String> hashMap);
  65.  
  66.     @FormUrlEncoded
  67.     @POST("/api/volume/create")
  68.     Single<Response<Volume>> createVolume(@Field("CBID") String str, @Field("name") String str2, @Field("introduction") String str3);
  69.  
  70.     @FormUrlEncoded
  71.     @POST("/api/volume/remove")
  72.     Single<Response> deleteVolume(@Field("CBID") String str, @Field("CVID") String str2);
  73.  
  74.     @FormUrlEncoded
  75.     @POST("/api/novel/tagSuggestion")
  76.     Single<Response<List<NovelTagsBean>>> fetTagSuggestion(@Field("language") String str, @Field("tagFillStr") String str2);
  77.  
  78.     @GET("/api/pub/getLanguages")
  79.     Single<Response<List<Language>>> fetchAppLanguage(@Query("contestId") String str);
  80.  
  81.     @GET("/portal/api/externalsite?service=novelsdashboardservice&action=getAppNovelsDashboard7Switch")
  82.     Single<Result<NovelsStatsSwitchBean.ResultBean>> fetchAppNovelsSwitch();
  83.  
  84.     @GET("/api/author/getAuthor")
  85.     Single<Response<Writer>> fetchAuthorName();
  86.  
  87.     @GET("/externalsite?service=fanficappservice&action=getBookRelationShipInfo")
  88.     Single<Result<List<NovelBookRelationShipInfo.ResultBean>>> fetchBookRelationShipInfo();
  89.  
  90.     @GET("/externalsite?service=fanficappservice&action=getBookRoleTypeInfo")
  91.     Single<Result<List<NovelBookRoleTypeInfo.ResultBean>>> fetchBookRoleTypeInfo();
  92.  
  93.     @GET("/api/novel/checkShortType/{CBID}")
  94.     Single<Response<NovelCheckShortTypeBean.ResultBean>> fetchCheckShortType(@Path("CBID") String str);
  95.  
  96.     @GET("/externalsite?service=fanficappservice&action=delBookRole&crid=38611620162764852&cbid=6391533100001201")
  97.     Single<Result<NovelDelBookRoleBean.ResultBean>> fetchDelBookRole(@Query("cbid") String str, @Query("crid") String str2);
  98.  
  99.     @GET("/api/pub/isfinelayout")
  100.     Single<Result<FineLayoutSwitchBean>> fetchFineLayoutSwitch();
  101.  
  102.     @GET("/api/chapter/get-last-chapter/{CBID}")
  103.     Single<Response<LatestChapterName>> fetchLatestChapterName(@Path("CBID") String str);
  104.  
  105.     @GET("/api/novel/newestContest")
  106.     Single<Response<ContestId>> fetchLatestContestId();
  107.  
  108.     @GET("/api/novel/categorys")
  109.     Single<Response<List<NovelCategory>>> fetchNovelCategory(@Query("freetype") String str, @Query("sexattr") String str2, @Query("contestId") String str3);
  110.  
  111.     @GET("/api/novel/getContests")
  112.     Single<Response<List<NovelContest>>> fetchNovelContest(@Query("categoryId") String str, @Query("language") String str2);
  113.  
  114.     @GET("/api/novel/getNovel/{CBID}")
  115.     Single<Response<Novel>> fetchNovelDetail(@Path("CBID") String str);
  116.  
  117.     @GET("/api/novel/getStaData")
  118.     Flowable<Response<List<NovelExtraInfo>>> fetchNovelExtraInfo(@Query("page") int i);
  119.  
  120.     @GET("/api/novel/getlist")
  121.     Single<Response<List<Novel>>> fetchNovelList(@Query("page") int i);
  122.  
  123.     @GET("/api/novel/getRange")
  124.     Single<Response<List<NovelRange>>> fetchNovelRange();
  125.  
  126.     @GET("/externalsite?service=fanficappservice&action=getNovelRolesInfo")
  127.     Single<Result<List<NovelRolesInfo.ResultBean>>> fetchNovelRolesInfo(@Query("cbid") String str);
  128.  
  129.     @GET("/externalsite?service=novelsdashboardservice&action=novelsDashboardSwitch")
  130.     Single<Result<NovelStatsSwitchBean>> fetchNovelStatsSwitch();
  131.  
  132.     @GET("/api/volume/list/{CBID}")
  133.     Single<Response<List<Volume>>> fetchNovelVolume(@Path("CBID") String str);
  134.  
  135.     @GET("/api/novel/getShortTypes/{CBID}")
  136.     Single<Result<List<NovelShortTypesBean.ResultBean>>> fetchShortTypes(@Path("CBID") String str);
  137.  
  138.     @GET("/api/novel/storytype")
  139.     Single<Result<List<NovelStoryTypeBean.ResultBean>>> fetchStoryType();
  140.  
  141.     @GET("/externalsite?service=appactarticleservice&action=paginateactarticle")
  142.     Single<Result<WelcomeContest>> fetchWelcomeContest();
  143.  
  144.     @FormUrlEncoded
  145.     @POST("/api/novel/topicSearch")
  146.     Single<Result<List<NovelTopicBean.ResultBean>>> fetchtopicSearch(@Field("topic") String str);
  147.  
  148.     @GET("/externalsite?service=appnovelservice&action=getActArticleLimit")
  149.     Single<Result<ActArticlelimit.ResultBean>> getActArticleLimit(@Query("idx") String str);
  150.  
  151.     @GET("/api/chapter/getAuthorThounght")
  152.     Single<Result<List<AuthorThounght.ResultBean>>> getAuthorThounght(@Query("CBID") String str);
  153.  
  154.     @GET("/externalsite?service=novelsdashboardservice&action=getBannerList")
  155.     Single<Result<List<WriteBannerList.ResultBean>>> getBannerList();
  156.  
  157.     @GET("/externalsite?service=appnovelservice&action=getChapterVerLogInfo")
  158.     Single<Result<ChapterVerLogInfo.ResultBean>> getChapterVerLogInfo(@Query("IDX") String str, @Query("shardingDate") String str2);
  159.  
  160.     @GET("/externalsite?service=appnovelservice&action=getChapterVerLogList")
  161.     Single<Result<List<ChapterVerLogList.ResultBean>>> getChapterVerLogList(@Query("CBID") String str, @Query("CCID") String str2);
  162.  
  163.     @GET("/externalsite?service=appactarticleservice&action=getTopContestList")
  164.     Single<Result<List<WriteContestsList.ResultBean>>> getTopContestList();
  165.  
  166.     @GET("/externalsite?service=appnovelservice&action=getTopTags")
  167.     Single<Result<List<TopTags.ResultBean>>> getTopTags();
  168.  
  169.     @FormUrlEncoded
  170.     @POST("/externalsite?service=fanficappservice&action=insertBookRole")
  171.     Single<Response<NovelUpdateBookInfo.ResultBean>> insertBookRole(@Field("cbid") String str, @Field("roleName") String str2, @Field("description") String str3, @Field("roleType") String str4);
  172.  
  173.     @FormUrlEncoded
  174.     @POST("/api/novel/attendContest")
  175.     Single<Response> joinContest(@Field("CBID") String str, @Field("contestid") String str2);
  176.  
  177.     @FormUrlEncoded
  178.     @POST("/api/novel/modify")
  179.     Single<Response> modifyNovel(@FieldMap HashMap<String, String> hashMap);
  180.  
  181.     @FormUrlEncoded
  182.     @POST("/api/volume/modify")
  183.     Single<Response<Boolean>> modifyVolume(@Field("CBID") String str, @Field("CVID") String str2, @Field("name") String str3, @Field("introduction") String str4);
  184.  
  185.     @FormUrlEncoded
  186.     @POST("/api/author/saveCountry")
  187.     Single<Response> saveCountry(@Field("areaCode") String str);
  188.  
  189.     @FormUrlEncoded
  190.     @POST("/api/chapter/surePubChapter")
  191.     Single<Result<NovelSurePubChapterBean.ResultBean>> surePubChapter(@Field("CBID") String str, @Field("content") String str2, @Field("editorMode") String str3);
  192.  
  193.     @FormUrlEncoded
  194.     @POST("/externalsite?service=fanficappservice&action=updateBookRole")
  195.     Single<Response<NovelUpdateBookInfo.ResultBean>> updateBookRole(@Field("cbid") String str, @Field("crid") String str2, @Field("roleName") String str3, @Field("description") String str4, @Field("roleType") String str5);
  196. }
  197.  
RAW Paste Data