2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Entities;
|
2016-06-18 14:02:25 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2016-06-18 14:02:25 -04:00
|
|
|
|
public interface IDeviceRepository : IRepository<Device, Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<Device> GetByIdAsync(Guid id, Guid userId);
|
2017-06-02 16:52:54 -04:00
|
|
|
|
Task<Device> GetByIdentifierAsync(string identifier);
|
2016-06-21 00:08:22 -04:00
|
|
|
|
Task<Device> GetByIdentifierAsync(string identifier, Guid userId);
|
2016-06-18 14:02:25 -04:00
|
|
|
|
Task<ICollection<Device>> GetManyByUserIdAsync(Guid userId);
|
2017-06-02 16:52:54 -04:00
|
|
|
|
Task ClearPushTokenAsync(Guid id);
|
2016-06-18 14:02:25 -04:00
|
|
|
|
}
|