2016-06-18 14:02:25 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
2017-03-08 21:45:08 -05:00
|
|
|
|
using Bit.Core.Models.Table;
|
2016-06-18 14:02:25 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
|
{
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|