示例#1
0
        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)));
        }
示例#2
0
        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);
            }
        }
示例#3
0
 private async Task InitGegenseiteAsync()
 {
     GegenseiteProfilViewmodel = new ProfilViewModel(await _profilService.GetProfilAsync(_chatInfo.GegenseiteAnbieterID));
 }
示例#4
0
 public async Task InitAnbieterProfilAsync()
 {
     AnbieterProfilViewmodel = new ProfilViewModel(await _profilService.GetProfilAsync(Angebot.AnbieterId));
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(AnbieterProfilViewmodel)));
 }