using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using IF.Lastfm.Core.Api.Helpers; namespace IF.Lastfm.Core.Api.Commands.AlbumApi { internal class AddShoutCommand : PostAsyncCommandBase { public string Album { get; set; } public string Artist { get; set; } public string Message { get; set; } public AddShoutCommand(IAuth auth, string album, string artist, string message) : base(auth) { Method = "album.shout"; Album = album; Artist = artist; Message = message; } public async override Task ExecuteAsync() { var parameters = new Dictionary { {"album", Album}, {"artist", Artist}, {"message", Message} }; return await ExecuteInternal(parameters); } public async override Task HandleResponse(HttpResponseMessage response) { return await LastResponse.HandleResponse(response); } } }