public Handler() { _databaseCurrencyHandler = new Core.Database.Handlers.Currency(); if (Core.Config.Config.Instance.Storage.StreamGames.Bankheist.General.Active) { AivaClient.Instance.TwitchClient.OnChatCommandReceived += ChatCommandReceived; } }
public Handler(Models.Giveaway.Properties properties) { Properties = properties; _joinedUsers = new List <Models.Giveaway.Users>(); _winners = new List <Models.Giveaway.Users>(); _databaseCurrencyHandler = new Core.Database.Handlers.Currency(); if (Properties.TimerActive) { timerToEnd = new System.Timers.Timer( TimeSpan.FromMinutes(Properties.TimerValue).TotalMilliseconds); timerToEnd.Elapsed += (sender, EventArgs) => StopRegistration(true); timerToEnd.Start(); } }
public Handler(Properties properties) { _properties = properties; _registredUserIds = new List <int>(); _databaseCurrencyHandler = new Core.Database.Handlers.Currency(); }
public Handler() { _currencyDatabaseHandler = new Core.Database.Handlers.Currency(); }
public Handler() { _databaseCurrencyHandler = new Core.Database.Handlers.Currency(); _randomGenerator = new Random(); _tableLayout = new TableLayout(); }