refactor: reorganize Application layer into folder structure

This commit is contained in:
2026-06-01 18:15:17 +03:30
parent dca3fc62ca
commit 775ae0d9b4
50 changed files with 618 additions and 492 deletions

View File

@@ -0,0 +1,23 @@
namespace GreenHome.Application;
/// <summary>
/// DTO for relay alert conditions (notificationType > 0)
/// </summary>
public sealed class RelayConditionDto
{
public int Enabled { get; set; }
public int TimeType { get; set; }
public string Relay { get; set; } = string.Empty;
public List<RelayRuleDto> Rules { get; set; } = new();
}
/// <summary>
/// DTO for relay condition rules
/// </summary>
public sealed class RelayRuleDto
{
public string Sensor { get; set; } = string.Empty;
public string Op { get; set; } = string.Empty;
public decimal V1 { get; set; }
public decimal? V2 { get; set; }
}