using System.Net.Http; using System.Threading.Tasks; using IF.Lastfm.Core.Api.Helpers; namespace IF.Lastfm.Core.Api.Commands.UserApi { internal class AddShoutCommand : PostAsyncCommandBase { public string Recipient { get; set; } public string Message { get; set; } public AddShoutCommand(IAuth auth, string recipient, string message) : base(auth) { Method = "user.shout"; Recipient = recipient; Message = message; } public override void SetParameters() { Parameters.Add("user", Recipient); Parameters.Add("message", Message); } public async override Task HandleResponse(HttpResponseMessage response) { return await LastResponse.HandleResponse(response); } } }