Files
GreenHomeBack/src/GreenHome.Application/Interfaces/IDeviceService.cs

11 lines
537 B
C#

namespace GreenHome.Application;
public interface IDeviceService
{
Task<int> AddDeviceAsync(DeviceDto dto, CancellationToken cancellationToken);
Task<IReadOnlyList<DeviceDto>> ListAsync(CancellationToken cancellationToken);
Task<DeviceDto> GetDeviceId(string deviceName, CancellationToken cancellationToken);
Task<IReadOnlyList<DeviceDto>> GetUserDevicesAsync(int userId, CancellationToken cancellationToken);
Task<PagedResult<DeviceDto>> GetDevicesAsync(DeviceFilter filter, CancellationToken cancellationToken);
}