public AkaSettings SetAkaSettings(SetAkaSettingsCommand cmd) { AliasSettings = new AkaSettings() { showAka = cmd.showAka, showW3info = cmd.showW3info, showLiquipedia = cmd.showLiquipedia }; return(AliasSettings); }
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); }