feat: add BatteryMonitor implementation with discovery, notification, and scheduling services
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace ShowerMonitor.Models;
|
||||
|
||||
public sealed class ShowerSession
|
||||
{
|
||||
public required DateTimeOffset StartTime { get; init; }
|
||||
public DateTimeOffset? EndTime { get; set; }
|
||||
public double PreEventHumidity { get; init; }
|
||||
public double PeakHumidity { get; set; }
|
||||
public DateTimeOffset? PeakTime { get; set; }
|
||||
|
||||
public TimeSpan Duration => EndTime.HasValue
|
||||
? EndTime.Value - StartTime
|
||||
: DateTimeOffset.UtcNow - StartTime;
|
||||
}
|
||||
Reference in New Issue
Block a user