17 lines
676 B
C#
17 lines
676 B
C#
using SPMS.Domain.Entities;
|
|
using SPMS.Domain.Enums;
|
|
|
|
namespace SPMS.Domain.Interfaces;
|
|
|
|
public interface IDeviceRepository : IRepository<Device>
|
|
{
|
|
Task<Device?> GetByServiceAndTokenAsync(long serviceId, string deviceToken);
|
|
Task<Device?> GetByIdAndServiceAsync(long id, long serviceId);
|
|
Task<int> GetActiveCountByServiceAsync(long serviceId);
|
|
Task<IReadOnlyList<Device>> GetByPlatformAsync(long serviceId, Platform platform);
|
|
Task<(IReadOnlyList<Device> Items, int TotalCount)> GetPagedAsync(
|
|
long serviceId, int page, int size,
|
|
Platform? platform = null, bool? pushAgreed = null,
|
|
bool? isActive = null, List<int>? tags = null);
|
|
}
|