mirror of
https://github.com/bitwarden/server.git
synced 2024-12-01 13:43:23 +01:00
19 lines
817 B
C#
19 lines
817 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Bit.Core.Models.Data;
|
|||
|
using Bit.Core.Models.Table;
|
|||
|
|
|||
|
namespace Bit.Core.Repositories
|
|||
|
{
|
|||
|
public interface IEmergencyAccessRepository : IRepository<EmergencyAccess, Guid>
|
|||
|
{
|
|||
|
Task<int> GetCountByGrantorIdEmailAsync(Guid grantorId, string email, bool onlyRegisteredUsers);
|
|||
|
Task<ICollection<EmergencyAccessDetails>> GetManyDetailsByGrantorIdAsync(Guid grantorId);
|
|||
|
Task<ICollection<EmergencyAccessDetails>> GetManyDetailsByGranteeIdAsync(Guid granteeId);
|
|||
|
Task<EmergencyAccessDetails> GetDetailsByIdGrantorIdAsync(Guid id, Guid grantorId);
|
|||
|
Task<ICollection<EmergencyAccessNotify>> GetManyToNotifyAsync();
|
|||
|
Task<ICollection<EmergencyAccessDetails>> GetExpiredRecoveriesAsync();
|
|||
|
}
|
|||
|
}
|