refactor: reorganize Application layer into folder structure
This commit is contained in:
7
src/GreenHome.Application/Dtos/Telemetry/DayCount.cs
Normal file
7
src/GreenHome.Application/Dtos/Telemetry/DayCount.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace GreenHome.Application;
|
||||
|
||||
public sealed class DayCount
|
||||
{
|
||||
public string PersianDate { get; set; } = string.Empty;
|
||||
public int Count { get; set; }
|
||||
}
|
||||
23
src/GreenHome.Application/Dtos/Telemetry/TelemetryDto.cs
Normal file
23
src/GreenHome.Application/Dtos/Telemetry/TelemetryDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace GreenHome.Application;
|
||||
|
||||
public sealed class TelemetryDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int DeviceId { get; set; }
|
||||
public string? DeviceName { get; set; }
|
||||
public DateTime? TimestampUtc { get; set; }
|
||||
public decimal TemperatureC { get; set; }
|
||||
public decimal HumidityPercent { get; set; }
|
||||
public decimal SoilPercent { get; set; }
|
||||
public int GasPPM { get; set; }
|
||||
public decimal? Voltage { get; set; }
|
||||
public decimal? BatteryVoltage { get; set; }
|
||||
public decimal? BatteryPercent { get; set; }
|
||||
public byte? Power { get; set; }
|
||||
public byte? OldPower { get; set; }
|
||||
public decimal Lux { get; set; }
|
||||
public int? PersianYear { get; set; }
|
||||
public int? PersianMonth { get; set; }
|
||||
public string PersianDate { get; set; } = string.Empty;
|
||||
public DateTime? ServerTimestampUtc { get; set; }
|
||||
}
|
||||
10
src/GreenHome.Application/Dtos/Telemetry/TelemetryFilter.cs
Normal file
10
src/GreenHome.Application/Dtos/Telemetry/TelemetryFilter.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace GreenHome.Application;
|
||||
|
||||
public sealed class TelemetryFilter
|
||||
{
|
||||
public int? DeviceId { get; set; }
|
||||
public DateTime? StartDateUtc { get; set; }
|
||||
public DateTime? EndDateUtc { get; set; }
|
||||
public int Page { get; set; } = 1;
|
||||
public int PageSize { get; set; } = 20;
|
||||
}
|
||||
15
src/GreenHome.Application/Dtos/Telemetry/TelemetryMinMax.cs
Normal file
15
src/GreenHome.Application/Dtos/Telemetry/TelemetryMinMax.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace GreenHome.Application;
|
||||
|
||||
public sealed class TelemetryMinMax
|
||||
{
|
||||
public decimal MinTemperatureC { get; set; }
|
||||
public decimal MaxTemperatureC { get; set; }
|
||||
public decimal MinHumidityPercent { get; set; }
|
||||
public decimal MaxHumidityPercent { get; set; }
|
||||
public decimal MinSoilPercent { get; set; }
|
||||
public decimal MaxSoilPercent { get; set; }
|
||||
public int MinGasPPM { get; set; }
|
||||
public int MaxGasPPM { get; set; }
|
||||
public decimal MinLux { get; set; }
|
||||
public decimal MaxLux { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user