namespace MiGu.Server.Configs;

public record FaultReportPolicy(bool Enabled, List<string> EmailTo);
public record AutoRepairPolicy(bool Enabled, int CooldownSec);

public record VehicleMaintenancePolicy(
    double LowBatteryThreshold,
    double CriticalBatteryThreshold,
    FaultReportPolicy FaultReport,
    AutoRepairPolicy AutoRepair)
{
    public static VehicleMaintenancePolicy Default() => new(
        LowBatteryThreshold: 0.3,
        CriticalBatteryThreshold: 0.15,
        FaultReport: new FaultReportPolicy(true, new List<string> { "ops@example.com" }),
        AutoRepair: new AutoRepairPolicy(false, 600));
}
