Files
GreenHomeBack/src/GreenHome.Application/Interfaces/IDeviceMemberService.cs
2026-09-10 19:09:36 +03:30

10 lines
488 B
C#

namespace GreenHome.Application;
public interface IDeviceMemberService
{
Task<IReadOnlyList<DeviceMemberDto>> ListByDeviceAsync(int deviceId, CancellationToken cancellationToken);
Task<DeviceMemberDto> UpsertAsync(UpsertDeviceMemberRequest request, CancellationToken cancellationToken);
Task DeleteAsync(int deviceId, int userId, CancellationToken cancellationToken);
Task<bool> CanManageDeviceAsync(int actorUserId, int deviceId, CancellationToken cancellationToken);
}