mirror of
https://github.com/bitwarden/server.git
synced 2024-12-04 14:13:28 +01:00
16 lines
492 B
C#
16 lines
492 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
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);
|
|
}
|
|
}
|