using System.Threading.Tasks;
using IF.Lastfm.Core.Objects;
namespace IF.Lastfm.Core.Api
{
public interface IAuth
{
bool HasAuthenticated { get; }
string ApiKey { get; }
UserSession User { get; }
///
/// Gets the session token which is used as authentication for any service calls.
/// Username and password aren't stored.
///
/// Username
/// User's password
/// Session token used to authenticate calls to last.fm
/// API: Auth.getMobileSession
Task GetSessionTokenAsync(string username, string password);
}
}