Skip to content

Commit c23f124

Browse files
committed
chore: add missing file
1 parent 87d95a0 commit c23f124

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

FanX/Models/DTO/ChartDataPoint.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace FanX.Models.DTO
2+
{
3+
/// <summary>
4+
/// Lightweight DTO for chart data to minimize SignalR payload
5+
/// </summary>
6+
public class ChartDataPoint
7+
{
8+
public DateTime T { get; set; } // Timestamp (short name to reduce JSON size)
9+
public double V { get; set; } // Value/Reading
10+
public string? N { get; set; } // SensorName
11+
public string? S { get; set; } // SensorType
12+
}
13+
}

0 commit comments

Comments
 (0)