mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 15:23:08 +01:00
35 lines
1017 B
C#
35 lines
1017 B
C#
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<LastResponse>
|
|
{
|
|
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 override void SetParameters()
|
|
{
|
|
Parameters.Add("album", Album);
|
|
Parameters.Add("artist", Artist);
|
|
Parameters.Add("message", Message);
|
|
}
|
|
|
|
public async override Task<LastResponse> HandleResponse(HttpResponseMessage response)
|
|
{
|
|
return await LastResponse.HandleResponse(response);
|
|
}
|
|
}
|
|
}
|