private void HandleCallResourceRequested(ResourceInfo resourceInfo)
 {
     if (CallResourceRequested != null)
     {
         CallResourceRequested(resourceInfo);
     }
 }
 public virtual void OnCallResourceRequested(ResourceInfo resourceInfo)
 {
     if (CallResourceRequested != null)
     {
         CallResourceRequested(resourceInfo);
     }
 }
 //OnCallVideoMail
 private void OnCallVideoMail(object sender, RoutedEventArgs e)
 {
     if (CallResourceRequested != null)
     {
         // sanity check here.
         if ((App.CurrentAccount != null) && !string.IsNullOrEmpty(App.CurrentAccount.VideoMailUri))
         {
             ResourceInfo resourceInfo = new ResourceInfo();
             resourceInfo.address = App.CurrentAccount.VideoMailUri;
             resourceInfo.name = "Video Mail";
             CallResourceRequested(resourceInfo);
         }
     }
 }
 private void OnCallResourceRequested(ResourceInfo resourceInfo)
 {
     if ((resourceInfo != null) && !string.IsNullOrEmpty(resourceInfo.address))
     {
         MediaActionHandler.MakeVideoCall(resourceInfo.address);
     }
 }
Пример #5
0
        private void OnVideoMailClicked(object sender, EventArgs e)
        {
            _mainViewModel.IsMenuDocked = false;
            CloseMeunAnimated();
            if (App.CurrentAccount != null)
            {
                App.CurrentAccount.VideoMailCount = 0;
                _mainViewModel.ShowVideomailIndicator = false;
                if (_mainViewModel.ContactModel != null)
                    _mainViewModel.ContactModel.VideoMailCount = App.CurrentAccount.VideoMailCount;
                if (_mainViewModel.MoreMenuModel != null)
                    _mainViewModel.MoreMenuModel.VideoMailCount = App.CurrentAccount.VideoMailCount;

                ResourceInfo resourceInfo = new ResourceInfo();
                resourceInfo.address = !string.IsNullOrEmpty(App.CurrentAccount.VideoMailUri)
                    ? App.CurrentAccount.VideoMailUri
                    : App.CurrentAccount.Username;
                resourceInfo.name = "Video Mail";
                OnCallResourceRequested(resourceInfo);
            }
        }