public TelegramMockUser(int userId, GameHostService gameHostService, bool isAdmin) { _gameHostService = gameHostService; UserId = userId; IsAdmin = isAdmin; InputText = IsAdmin ? "/neste" : "/start"; OnExecuteMakePlayerCommand(null); }
public TelegramMockUser(int userId, GameHostService gameHostService, bool isAdmin) { _gameHostService = gameHostService; UserId = userId; IsAdmin = isAdmin; if (!isAdmin) { //OnExecuteMakePlayerCommand(null); } else { HasRunMakePlayerCommand = true; // disable button for admin - does nothing Dispatcher.CurrentDispatcher.BeginInvoke((Action)(() => _gameHostService.SendMessage(userId, "/hjelp"))); } }
public MockTelegramSender(GameHostService gameHostService) { _gameHostService = gameHostService; }