1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-04 14:13:28 +01:00
bitwarden-server/src/Core/Repositories/IDeviceRepository.cs

16 lines
492 B
C#
Raw Normal View History

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