comments added

This commit is contained in:
Aivaras J. 2022-01-14 12:55:13 +00:00
parent 7c00423e3c
commit 030edb06f4
1 changed files with 5 additions and 1 deletions

View File

@ -19,12 +19,15 @@ public class Interval
private readonly Interval[] _accessIntervals =
{
// Explanation -> TimeSpan(int hours, int minutes, int seconds)
// Set schedule range and access level name
// TimeSpan(hours, minutes, seconds)
// Name = "Access_level"
new() {Start = new TimeSpan(16, 23, 0), End = new TimeSpan(16, 24, 0), Name = "Breakfast"},
new() {Start = new TimeSpan(16, 24, 0), End = new TimeSpan(16, 25, 0), Name = "Lunch"},
new() {Start = new TimeSpan(16, 25, 0), End = new TimeSpan(16, 26, 0), Name = "Dinner"}
};
// Set a list of doors that will be monitored
private readonly string[] _canteenDoors =
{
"Mr-1&3", "CANTEEN-DOOR-R-TUR-2 Ent"
@ -34,6 +37,7 @@ private string _path;
private readonly SemaphoreSlim _semaphoreSlim = new(1);
// Set time when access levels will reset
public readonly TimeSpan AccessLevelsResetTime = new(16, 27, 0);
private Timer _timer;