示例#1
0
        public AkaSettings SetAkaSettings(SetAkaSettingsCommand cmd)
        {
            AliasSettings = new AkaSettings()
            {
                showAka        = cmd.showAka,
                showW3info     = cmd.showW3info,
                showLiquipedia = cmd.showLiquipedia
            };

            return(AliasSettings);
        }
示例#2
0
        public async Task <bool> UpdateAkaSettings(string battleTag, SetAkaSettingsCommand command)
        {
            var setting = await _personalSettingsRepository.Load(battleTag);

            if (setting == null)
            {
                var playerProfile = await _playerRepository.LoadPlayerProfile(battleTag);

                setting = new PersonalSetting(battleTag, new List <PlayerOverallStats> {
                    playerProfile
                });
            }

            var result = setting.SetAkaSettings(command);

            await _personalSettingsRepository.Save(setting);

            return(true);
        }