Exemple #1
0
        public TelegramMockUser(int userId, GameHostService gameHostService, bool isAdmin)
        {
            _gameHostService = gameHostService;
            UserId           = userId;
            IsAdmin          = isAdmin;
            InputText        = IsAdmin ? "/neste" : "/start";

            OnExecuteMakePlayerCommand(null);
        }
Exemple #2
0
        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")));
            }
        }
Exemple #3
0
 public MockTelegramSender(GameHostService gameHostService)
 {
     _gameHostService = gameHostService;
 }