mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
26 lines
780 B
C#
26 lines
780 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace TINK.Model.User.Account
|
|
{
|
|
/// <summary>Interface to manage an account store.</summary>
|
|
public interface IStore
|
|
{
|
|
/// <summary>
|
|
/// Reads mail address and password from account store.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<IAccount> Load();
|
|
|
|
/// <summary>
|
|
/// Writes mail address and password to account store.
|
|
/// </summary>
|
|
/// <param name="mailAndPwd"></param>
|
|
Task Save(IAccount mailAndPwd);
|
|
|
|
/// <summary>
|
|
/// Deletes mail address and password from account store.
|
|
/// </summary>
|
|
/// <returns> Empty account instance if deleting succeeded.</returns>
|
|
IAccount Delete(IAccount mailAndPwd);
|
|
}
|
|
}
|