示例#1
0
 /// <summary>
 /// Get my user information
 /// </summary>
 /// <exception cref="OpenMAL.API.Client.ApiException">
 /// Thrown when fails to make API call
 /// </exception>
 /// <param name="userName">You can only specify `@me`.</param>
 /// <param name="fields">(optional)</param>
 /// <returns>User</returns>
 public User UsersUserIdGet(string userName, string fields = default(string))
 {
     OpenMAL.API.Client.ApiResponse <User> localVarResponse = UsersUserIdGetWithHttpInfo(userName, fields);
     return(localVarResponse.Data);
 }
示例#2
0
        /// <summary>
        /// Get my user information
        /// </summary>
        /// <exception cref="OpenMAL.API.Client.ApiException">
        /// Thrown when fails to make API call
        /// </exception>
        /// <param name="userName">You can only specify `@me`.</param>
        /// <param name="fields">(optional)</param>
        /// <returns>Task of User</returns>
        public async System.Threading.Tasks.Task <User> UsersUserIdGetAsync(string userName, string fields = default(string))
        {
            OpenMAL.API.Client.ApiResponse <User> localVarResponse = await UsersUserIdGetAsyncWithHttpInfo(userName, fields);

            return(localVarResponse.Data);
        }
示例#3
0
 /// <summary>
 /// Get forum topics
 /// </summary>
 /// <exception cref="OpenMAL.API.Client.ApiException">
 /// Thrown when fails to make API call
 /// </exception>
 /// <param name="boardId">(optional)</param>
 /// <param name="subboardId">(optional)</param>
 /// <param name="limit">(optional, default to 100)</param>
 /// <param name="offset">(optional, default to 0)</param>
 /// <param name="sort">Currently, only \"recent\" can be set. (optional, default to "recent")</param>
 /// <param name="q">(optional)</param>
 /// <param name="topicUserName">(optional)</param>
 /// <param name="userName">(optional)</param>
 /// <returns>ForumTopics</returns>
 public ForumTopics ForumTopicsGet(int?boardId = default(int?), int?subboardId = default(int?), int?limit = default(int?), int?offset = default(int?), string sort = default(string), string q = default(string), string topicUserName = default(string), string userName = default(string))
 {
     OpenMAL.API.Client.ApiResponse <ForumTopics> localVarResponse = ForumTopicsGetWithHttpInfo(boardId, subboardId, limit, offset, sort, q, topicUserName, userName);
     return(localVarResponse.Data);
 }
示例#4
0
        /// <summary>
        /// Get forum topics
        /// </summary>
        /// <exception cref="OpenMAL.API.Client.ApiException">
        /// Thrown when fails to make API call
        /// </exception>
        /// <param name="boardId">(optional)</param>
        /// <param name="subboardId">(optional)</param>
        /// <param name="limit">(optional, default to 100)</param>
        /// <param name="offset">(optional, default to 0)</param>
        /// <param name="sort">Currently, only \"recent\" can be set. (optional, default to "recent")</param>
        /// <param name="q">(optional)</param>
        /// <param name="topicUserName">(optional)</param>
        /// <param name="userName">(optional)</param>
        /// <returns>Task of ForumTopics</returns>
        public async System.Threading.Tasks.Task <ForumTopics> ForumTopicsGetAsync(int?boardId = default(int?), int?subboardId = default(int?), int?limit = default(int?), int?offset = default(int?), string sort = default(string), string q = default(string), string topicUserName = default(string), string userName = default(string))
        {
            OpenMAL.API.Client.ApiResponse <ForumTopics> localVarResponse = await ForumTopicsGetAsyncWithHttpInfo(boardId, subboardId, limit, offset, sort, q, topicUserName, userName);

            return(localVarResponse.Data);
        }
示例#5
0
 /// <summary>
 /// Get forum topic detail
 /// </summary>
 /// <exception cref="OpenMAL.API.Client.ApiException">
 /// Thrown when fails to make API call
 /// </exception>
 /// <param name="topicId"></param>
 /// <param name="limit">(optional, default to 100)</param>
 /// <param name="offset">(optional, default to 0)</param>
 /// <returns>ForumTopic</returns>
 public ForumTopic ForumTopicGet(int topicId, int?limit = default(int?), int?offset = default(int?))
 {
     OpenMAL.API.Client.ApiResponse <ForumTopic> localVarResponse = ForumTopicGetWithHttpInfo(topicId, limit, offset);
     return(localVarResponse.Data);
 }
示例#6
0
        /// <summary>
        /// Get forum topic detail
        /// </summary>
        /// <exception cref="OpenMAL.API.Client.ApiException">
        /// Thrown when fails to make API call
        /// </exception>
        /// <param name="topicId"></param>
        /// <param name="limit">(optional, default to 100)</param>
        /// <param name="offset">(optional, default to 0)</param>
        /// <returns>Task of ForumTopic</returns>
        public async System.Threading.Tasks.Task <ForumTopic> ForumTopicGetAsync(int topicId, int?limit = default(int?), int?offset = default(int?))
        {
            OpenMAL.API.Client.ApiResponse <ForumTopic> localVarResponse = await ForumTopicGetAsyncWithHttpInfo(topicId, limit, offset);

            return(localVarResponse.Data);
        }
示例#7
0
 /// <summary>
 /// Get forum boards
 /// </summary>
 /// <exception cref="OpenMAL.API.Client.ApiException">
 /// Thrown when fails to make API call
 /// </exception>
 /// <returns>ForumBoards</returns>
 public ForumBoards ForumBoardsGet()
 {
     OpenMAL.API.Client.ApiResponse <ForumBoards> localVarResponse = ForumBoardsGetWithHttpInfo();
     return(localVarResponse.Data);
 }
示例#8
0
        /// <summary>
        /// Get forum boards
        /// </summary>
        /// <exception cref="OpenMAL.API.Client.ApiException">
        /// Thrown when fails to make API call
        /// </exception>
        /// <returns>Task of ForumBoards</returns>
        public async System.Threading.Tasks.Task <ForumBoards> ForumBoardsGetAsync()
        {
            OpenMAL.API.Client.ApiResponse <ForumBoards> localVarResponse = await ForumBoardsGetAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
示例#9
0
        /// <summary>
        /// Get manga ranking The returned manga contains the `ranking` field.
        /// </summary>
        /// <exception cref="OpenMAL.API.Client.ApiException">
        /// Thrown when fails to make API call
        /// </exception>
        /// <param name="rankingType">
        /// | value | | | - -- - | - -- - | | all | All | | manga | Top Manga | | novels | Top
        /// Novels | | oneshots | Top One-shots | | doujin | Top Doujinshi | | manhwa | Top Manhwa |
        /// | manhua | Top Manhua | | bypopularity | Most Popular | | favorite | Most Favorited |
        /// </param>
        /// <param name="limit">The maximum value is 500. (optional, default to 100)</param>
        /// <param name="offset">(optional, default to 0)</param>
        /// <param name="fields">(optional)</param>
        /// <returns>Task of MangaListForRanking</returns>
        public async System.Threading.Tasks.Task <MangaListForRanking> MangaRankingGetAsync(string rankingType, int?limit = default(int?), int?offset = default(int?), string fields = default(string))
        {
            OpenMAL.API.Client.ApiResponse <MangaListForRanking> localVarResponse = await MangaRankingGetAsyncWithHttpInfo(rankingType, limit, offset, fields);

            return(localVarResponse.Data);
        }
示例#10
0
 /// <summary>
 /// Get manga ranking The returned manga contains the `ranking` field.
 /// </summary>
 /// <exception cref="OpenMAL.API.Client.ApiException">
 /// Thrown when fails to make API call
 /// </exception>
 /// <param name="rankingType">
 /// | value | | | - -- - | - -- - | | all | All | | manga | Top Manga | | novels | Top
 /// Novels | | oneshots | Top One-shots | | doujin | Top Doujinshi | | manhwa | Top Manhwa |
 /// | manhua | Top Manhua | | bypopularity | Most Popular | | favorite | Most Favorited |
 /// </param>
 /// <param name="limit">The maximum value is 500. (optional, default to 100)</param>
 /// <param name="offset">(optional, default to 0)</param>
 /// <param name="fields">(optional)</param>
 /// <returns>MangaListForRanking</returns>
 public MangaListForRanking MangaRankingGet(string rankingType, int?limit = default(int?), int?offset = default(int?), string fields = default(string))
 {
     OpenMAL.API.Client.ApiResponse <MangaListForRanking> localVarResponse = MangaRankingGetWithHttpInfo(rankingType, limit, offset, fields);
     return(localVarResponse.Data);
 }
示例#11
0
        /// <summary>
        /// Get manga details
        /// </summary>
        /// <exception cref="OpenMAL.API.Client.ApiException">
        /// Thrown when fails to make API call
        /// </exception>
        /// <param name="mangaId"></param>
        /// <param name="fields">(optional)</param>
        /// <returns>Task of MangaForDetails</returns>
        public async System.Threading.Tasks.Task <MangaForDetails> MangaMangaIdGetAsync(int mangaId, string fields = default(string))
        {
            OpenMAL.API.Client.ApiResponse <MangaForDetails> localVarResponse = await MangaMangaIdGetAsyncWithHttpInfo(mangaId, fields);

            return(localVarResponse.Data);
        }
示例#12
0
 /// <summary>
 /// Get manga details
 /// </summary>
 /// <exception cref="OpenMAL.API.Client.ApiException">
 /// Thrown when fails to make API call
 /// </exception>
 /// <param name="mangaId"></param>
 /// <param name="fields">(optional)</param>
 /// <returns>MangaForDetails</returns>
 public MangaForDetails MangaMangaIdGet(int mangaId, string fields = default(string))
 {
     OpenMAL.API.Client.ApiResponse <MangaForDetails> localVarResponse = MangaMangaIdGetWithHttpInfo(mangaId, fields);
     return(localVarResponse.Data);
 }
示例#13
0
 /// <summary>
 /// Get manga list
 /// </summary>
 /// <exception cref="OpenMAL.API.Client.ApiException">
 /// Thrown when fails to make API call
 /// </exception>
 /// <param name="q">Search. (optional)</param>
 /// <param name="limit">The maximum value is 100. (optional, default to 100)</param>
 /// <param name="offset">(optional, default to 0)</param>
 /// <param name="fields">(optional)</param>
 /// <returns>MangaList</returns>
 public MangaList MangaGet(string q = default(string), int?limit = default(int?), int?offset = default(int?), string fields = default(string))
 {
     OpenMAL.API.Client.ApiResponse <MangaList> localVarResponse = MangaGetWithHttpInfo(q, limit, offset, fields);
     return(localVarResponse.Data);
 }