2015-12-08 22:57:38 -05:00
|
|
|
|
using System;
|
2017-08-22 15:27:29 -04:00
|
|
|
|
using System.Collections.Generic;
|
2015-12-08 22:57:38 -05:00
|
|
|
|
using System.Threading.Tasks;
|
2018-08-14 15:30:04 -04:00
|
|
|
|
using Bit.Core.Models.Data;
|
2017-03-08 21:45:08 -05:00
|
|
|
|
using Bit.Core.Models.Table;
|
2015-12-08 22:57:38 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
|
{
|
2016-05-21 17:16:22 -04:00
|
|
|
|
public interface IUserRepository : IRepository<User, Guid>
|
2015-12-08 22:57:38 -05:00
|
|
|
|
{
|
|
|
|
|
|
Task<User> GetByEmailAsync(string email);
|
2018-08-14 15:30:04 -04:00
|
|
|
|
Task<UserKdfInformation> GetKdfInformationByEmailAsync(string email);
|
2018-03-21 17:41:14 -04:00
|
|
|
|
Task<ICollection<User>> SearchAsync(string email, int skip, int take);
|
2017-08-22 15:27:29 -04:00
|
|
|
|
Task<ICollection<User>> GetManyByPremiumAsync(bool premium);
|
2017-03-04 21:28:41 -05:00
|
|
|
|
Task<string> GetPublicKeyAsync(Guid id);
|
2017-01-14 10:02:37 -05:00
|
|
|
|
Task<DateTime> GetAccountRevisionDateAsync(Guid id);
|
2017-07-10 22:08:52 -04:00
|
|
|
|
Task UpdateStorageAsync(Guid id);
|
2018-07-12 23:23:41 -04:00
|
|
|
|
Task UpdateRenewalReminderDateAsync(Guid id, DateTime renewalReminderDate);
|
2015-12-08 22:57:38 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|