refactor: reorganize Application layer into folder structure
This commit is contained in:
23
src/GreenHome.Application/Dtos/Alert/RelayConditionDto.cs
Normal file
23
src/GreenHome.Application/Dtos/Alert/RelayConditionDto.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user