Files
server/src/Core/Repositories/IDeviceRepository.cs

17 lines
532 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
2017-03-08 21:45:08 -05:00
using Bit.Core.Models.Table;
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);
Task<Device> GetByIdentifierAsync(string identifier, Guid userId);
Task<ICollection<Device>> GetManyByUserIdAsync(Guid userId);
2017-06-02 16:52:54 -04:00
Task ClearPushTokenAsync(Guid id);
}
}