/// <summary> /// Adds manga to specific user's list. /// </summary> /// <param name="addedManga">The new added manga to the list.</param> /// <param name="mangaId">The ID of the new added manga.</param> /// <returns>A string represnting the state of adding "Created" or detailed error message.</returns> public async Task <string> AddMangaAsync(MangaEntry addedManga, int mangaId) { m_api.CheckAuthAsync(); return(await m_api.PostSerializedObjectAsync(addedManga, string.Format(MAL.url_addManga, mangaId))); }
/// <summary> ///Adds anime entry to specific user's list asynchronously. /// </summary> /// <param name="addedAnime">The new added anime to the list.</param> /// <param name="animeId">The ID of the new added anime.</param> /// <returns>A string represnting the state of adding "Created" or detailed error message.</returns> public async Task <string> AddAnimeAsync(AnimeEntry addedAnime, int animeId) { m_api.CheckAuthAsync(); return(await m_api.PostSerializedObjectAsync(addedAnime, string.Format(MAL.url_addAnime, animeId))); }