mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
26 lines
No EOL
958 B
C#
26 lines
No EOL
958 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Models.Domain;
|
|
|
|
namespace Bit.Core.Abstractions
|
|
{
|
|
public interface IUserService
|
|
{
|
|
Task<bool> CanAccessPremiumAsync();
|
|
Task ClearAsync();
|
|
Task ClearOrganizationsAsync(string userId);
|
|
Task<List<Organization>> GetAllOrganizationAsync();
|
|
Task<string> GetEmailAsync();
|
|
Task<KdfType?> GetKdfAsync();
|
|
Task<int?> GetKdfIterationsAsync();
|
|
Task<Organization> GetOrganizationAsync(string id);
|
|
Task<string> GetSecurityStampAsync();
|
|
Task<string> GetUserIdAsync();
|
|
Task<bool> IsAuthenticatedAsync();
|
|
Task ReplaceOrganizationsAsync(Dictionary<string, OrganizationData> organizations);
|
|
Task SetInformationAsync(string userId, string email, KdfType kdf, int kdfIterations);
|
|
Task SetSecurityStampAsync(string stamp);
|
|
}
|
|
} |