mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 15:23:08 +01:00
22 lines
745 B
C#
22 lines
745 B
C#
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; }
|
|
|
|
/// <summary>
|
|
/// Gets the session token which is used as authentication for any service calls.
|
|
/// Username and password aren't stored.
|
|
/// </summary>
|
|
/// <param name="username">Username</param>
|
|
/// <param name="password">User's password</param>
|
|
/// <returns>Session token used to authenticate calls to last.fm</returns>
|
|
/// <remarks>API: Auth.getMobileSession</remarks>
|
|
Task GetSessionTokenAsync(string username, string password);
|
|
}
|
|
} |