Inheritance: MyAnimeListValues
		/// <summary>
		/// Update Anime info by ID
		/// </summary>
		/// <param name="id">Anime ID on MyAnimeList.net</param>
		/// <param name="animeValues">object that represents XML specification</param>
		/// <returns>Response from the server in raw string whether anime was added correctly or not</returns>
		public string UpdateAnime(int? id, AnimeValues animeValues)
		{
			var data = GetDataStringFromMyAnimeListValues(animeValues);
			return UpdateAnime(id, data);
		}
		public AnimeValuesTest(CredentialContextFixture credentialContextFixture, ITestOutputHelper output)
			: base(credentialContextFixture)
		{
			_output = output;
			_sut = new AnimeValues();
		}
示例#3
0
		private static void TestAddAnimeByObject(ICredentialContext credential)
		{
			var methods = new AnimeListMethods(credential);
			var animeValues = new AnimeValues
			{
				AnimeStatus = AnimeStatus.Watching,
				Comments = "It was a great series."
			};
			var responseText = methods.AddAnime(ANIME_ID, animeValues);

			Console.WriteLine(responseText);
		}
		public async Task<string> UpdateAnimeAsync(int? id, AnimeValues animeValues)
		{
			var data = GetDataStringFromMyAnimeListValues(animeValues);
			return await UpdateAnimeAsync(id, data);
		}