예제 #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;
 }