protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); SetzeCommands(); Profil profil = await _profilService.GetProfilAsync(_loginService.AnbieterId); _profilVM = new ProfilViewModel(profil); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(_profilVM))); }
private async void _chatPollingService_NachrichtErhalten(Contracts.Models.Angebot angebot, Models.ChatNachricht nachricht) { var profil = await _profilService.GetProfilAsync(nachricht.SenderAnbieterID); if (!string.IsNullOrEmpty(nachricht.TechnischerNachrichtenTyp) && nachricht.TechnischerNachrichtenTyp == Reservierung.TECHNISCHER_NACHRICHTENTYP) { await Factory.GetNotificationService().SendChatNotificationAsync(profil.Nickname + " - " + angebot.Ueberschrift, Reservierung.GetChatMessageText(nachricht.Nachricht), angebot.Id, nachricht.SenderAnbieterID); } else { await Factory.GetNotificationService().SendChatNotificationAsync(profil.Nickname + " - " + angebot.Ueberschrift, nachricht.Nachricht, angebot.Id, nachricht.SenderAnbieterID); } }
private async Task InitGegenseiteAsync() { GegenseiteProfilViewmodel = new ProfilViewModel(await _profilService.GetProfilAsync(_chatInfo.GegenseiteAnbieterID)); }
public async Task InitAnbieterProfilAsync() { AnbieterProfilViewmodel = new ProfilViewModel(await _profilService.GetProfilAsync(Angebot.AnbieterId)); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(AnbieterProfilViewmodel))); }