示例#1
0
 public void Update(PersonalSettingsDTO dto)
 {
     ProfileMessage = dto.ProfileMessage;
     Twitch         = dto.Twitch;
     YouTube        = dto.Youtube;
     Twitter        = dto.Twitter;
     HomePage       = dto.HomePage;
     Country        = dto.Country;
 }
示例#2
0
        public async Task <IActionResult> SetPersonalSetting(
            string battleTag,
            [FromBody] PersonalSettingsDTO dto)
        {
            var setting = await _personalSettingsRepository.Load(battleTag) ?? new PersonalSetting(battleTag);

            setting.Update(dto);

            await _personalSettingsRepository.Save(setting);

            return(Ok());
        }
示例#3
0
 public void Update(PersonalSettingsDTO dto)
 {
     ProfileMessage = dto.ProfileMessage;
     Twitch         = dto.Twitch;
     YouTube        = dto.Youtube;
     Twitter        = dto.Twitter;
     Trovo          = dto.Trovo;
     Douyu          = dto.Douyu;
     HomePage       = dto.HomePage;
     Country        = dto.Country;
     CountryCode    = dto.CountryCode;
 }