17 lines
479 B
C#
17 lines
479 B
C#
using ShowerMonitor.Models;
|
|
using ShowerMonitor.Models.Enums;
|
|
|
|
namespace ShowerMonitorManager.Interface;
|
|
|
|
public interface IShowerDetectionService
|
|
{
|
|
ShowerState CurrentState { get; }
|
|
ShowerSession? CurrentSession { get; }
|
|
ShowerSession? LastCompletedSession { get; }
|
|
int TodaySessionCount { get; }
|
|
double LastRate { get; }
|
|
|
|
ShowerState Evaluate(double bathroomHumidity, double mainHomeHumidity, DateTimeOffset timestamp);
|
|
void ResetDailyCounters();
|
|
}
|