Exemplo n.º 1
0
        public string GetToken()
        {
            var gameConfigSerializer = new GamesConfigurationSerializer();
            var gameConfiguration    = gameConfigSerializer.GetConfiguration(_gameType, _universum);

            return(gameConfiguration.Token);
        }
Exemplo n.º 2
0
        public void SaveToken(string token)
        {
            var gameConfigSerializer = new GamesConfigurationSerializer();
            var gameConfiguration    = gameConfigSerializer.GetConfiguration(_gameType, _universum);

            gameConfiguration.Token = token;
            gameConfigSerializer.AddConfiguration(gameConfiguration);
        }
Exemplo n.º 3
0
        private void UpdateActualGameConfiguration(string configurationName)
        {
            var gameConfigSerializer = new GamesConfigurationSerializer();

            ActualGameConfigurationModel = gameConfigSerializer.GetConfiguration(configurationName);
        }
Exemplo n.º 4
0
        private GameConfigurationModel GetGameConfiguration(string gameConfigurationName)
        {
            var serializer = new GamesConfigurationSerializer();

            return(serializer.GetConfiguration(gameConfigurationName));
        }