Update 'AlsResetScript.txt'
This commit is contained in:
parent
7b8b022ae0
commit
858f920faf
|
@ -1,17 +1,13 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using MDP.SID.Scripting.Service;
|
||||
using GrpcScriptService;
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading;
|
||||
using System.Net.Http;
|
||||
using System.Net;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MDP.SID.Scripting.Grpc;
|
||||
using Newtonsoft.Json;
|
||||
using Event = MDP.SID.Scripting.Grpc.Event;
|
||||
using Timer = System.Timers.Timer;
|
||||
|
||||
public class Interval
|
||||
|
@ -24,9 +20,9 @@ public class Interval
|
|||
private readonly Interval[] _accessIntervals =
|
||||
{
|
||||
// Explanation -> TimeSpan(int hours, int minutes, int seconds)
|
||||
new Interval {Start = new TimeSpan(16, 55, 0), End = new TimeSpan(17, 00, 0), Name = "Breakfast"},
|
||||
new Interval {Start = new TimeSpan(17, 00, 0), End = new TimeSpan(17, 05, 0), Name = "Lunch"},
|
||||
new Interval {Start = new TimeSpan(17, 05, 0), End = new TimeSpan(17, 10, 0), Name = "Dinner"}
|
||||
new() {Start = new TimeSpan(16, 55, 0), End = new TimeSpan(17, 00, 0), Name = "Breakfast"},
|
||||
new() {Start = new TimeSpan(17, 00, 0), End = new TimeSpan(17, 05, 0), Name = "Lunch"},
|
||||
new() {Start = new TimeSpan(17, 05, 0), End = new TimeSpan(17, 10, 0), Name = "Dinner"}
|
||||
};
|
||||
|
||||
private readonly string[] _canteenDoors =
|
||||
|
@ -36,13 +32,13 @@ private readonly string[] _canteenDoors =
|
|||
|
||||
private string _path;
|
||||
|
||||
private SemaphoreSlim _semaphoreSlim = new(1);
|
||||
private readonly SemaphoreSlim _semaphoreSlim = new(1);
|
||||
|
||||
public readonly TimeSpan AccessLevelsResetTime = new(17, 11, 0);
|
||||
public readonly TimeSpan AccessLevelsResetTime = new(17, 11, 0);
|
||||
|
||||
private Timer _timer;
|
||||
|
||||
private static ConcurrentDictionary<int, IList<string>> _failedAddOrUpdate = new();
|
||||
private static readonly ConcurrentDictionary<int, IList<string>> _failedAddOrUpdate = new();
|
||||
|
||||
private async Task ResetUsersAccessLevelsAsync()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue