2016-06-18 20:02:25 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
2017-03-09 03:45:08 +01:00
|
|
|
|
using Bit.Core.Models.Table;
|
2016-06-18 20:02:25 +02:00
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories
|
|
|
|
|
{
|
|
|
|
|
public interface IDeviceRepository : IRepository<Device, Guid>
|
|
|
|
|
{
|
|
|
|
|
Task<Device> GetByIdAsync(Guid id, Guid userId);
|
2016-06-21 06:08:22 +02:00
|
|
|
|
Task<Device> GetByIdentifierAsync(string identifier, Guid userId);
|
2016-06-18 20:02:25 +02:00
|
|
|
|
Task<ICollection<Device>> GetManyByUserIdAsync(Guid userId);
|
2016-08-06 21:15:11 +02:00
|
|
|
|
Task ClearPushTokenByIdentifierAsync(string identifier);
|
2016-06-18 20:02:25 +02:00
|
|
|
|
}
|
|
|
|
|
}
|