comments added
This commit is contained in:
parent
7c00423e3c
commit
030edb06f4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue