24729ee267
- Reindent appsettings.json and the MSBuild project files - Collapse single-statement guard blocks and tidy using and member order - Normalize XML doc indentation and file endings - Reorder BatteryMonitor test-data helpers and move the exclusion tests into their own region - Carry the same formatting through the boiler config, control, entity and test files
35 lines
896 B
C#
35 lines
896 B
C#
namespace BatteryMonitor.Models;
|
|
|
|
public static class BatteryMonitorConsts
|
|
{
|
|
public const int DefaultBatteryThresholdPercent = 5;
|
|
|
|
public const string BatteryDeviceClass = "battery";
|
|
|
|
public const string SensorDomainPrefix = "sensor.";
|
|
|
|
public const string NotificationId = "battery_monitor_low_battery";
|
|
|
|
public const string NotificationTitle = "Low Battery Alert";
|
|
|
|
public const string PersistentNotificationDomain = "persistent_notification";
|
|
|
|
public const string PersistentNotificationCreateService = "create";
|
|
|
|
public const string PersistentNotificationDismissService = "dismiss";
|
|
|
|
public const string DailyCheckCron = "0 8 * * *";
|
|
|
|
public static readonly string[] ExcludedKeywords =
|
|
[
|
|
"iphone",
|
|
"phone",
|
|
"watch",
|
|
"galaxy",
|
|
"sm_s",
|
|
"sm_a",
|
|
"pixel",
|
|
"oneplus",
|
|
"ipad"
|
|
];
|
|
} |