1
0
mirror of https://github.com/bitwarden/server synced 2025-12-13 14:53:34 +00:00
Files
server/src/Core/Repositories/IDeviceRepository.cs

15 lines
422 B
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Bit.Core.Domains;
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);
}
}