Пример #1
0
 /// <summary>
 /// Method called when this page isn't displayed anymore.
 /// </summary>
 protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
 {
     chatRoom = null;
     LinphoneManager.Instance.MessageListener   = null;
     LinphoneManager.Instance.ComposingListener = null;
     base.OnNavigatingFrom(e);
 }
Пример #2
0
        private void CreateChatRoom(LinphoneAddress sipAddress)
        {
            this.sipAddress = sipAddress;
            ContactManager.Instance.FindContact(String.Format("{0}@{1}", sipAddress.UserName, sipAddress.Domain));
            ContactName.Text       = sipAddress.UserName;
            ContactName.Visibility = Visibility.Visible;
            NewChat.Visibility     = Visibility.Collapsed;

            try
            {
                chatRoom = LinphoneManager.Instance.LinphoneCore.GetChatRoom(sipAddress);
            }
            catch
            {
                Logger.Err("Can't create chat room for sip address {0}", sipAddress);
                throw;
            }
        }
Пример #3
0
        /// <summary>
        /// Callback for LinphoneCoreListener
        /// </summary>
        public void ComposingReceived(LinphoneChatRoom room)
        {
            if (BaseModel.UIDispatcher == null)
            {
                return;
            }
            BaseModel.UIDispatcher.BeginInvoke(() =>
            {
                if (ComposingListener != null && room != null)
                {
                    string currentListenerSipAddress = ComposingListener.GetSipAddressAssociatedWithDisplayConversation();
                    LinphoneAddress peerAddress      = room.PeerAddress;
                    string roomComposingSipAddress   = String.Format("{0}@{1}", peerAddress.UserName, peerAddress.Domain);

                    if (currentListenerSipAddress != null && roomComposingSipAddress.Equals(currentListenerSipAddress))
                    {
                        ComposingListener.ComposeReceived();
                    }
                }
            });
        }
 /// <summary>
 /// Callback for LinphoneCoreListener
 /// </summary>
 public void ComposingReceived(LinphoneChatRoom room)
 {
 }
Пример #5
0
 public void ComposingReceived(LinphoneChatRoom room)
 {
     Console.WriteLine("ComposingReceived");
 }
Пример #6
0
 /// <summary>
 /// Method called when this page isn't displayed anymore.
 /// </summary>
 protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
 {
     chatRoom = null;
     LinphoneManager.Instance.MessageListener = null;
     LinphoneManager.Instance.ComposingListener = null;
     base.OnNavigatingFrom(e);
 }
Пример #7
0
        private void CreateChatRoom(LinphoneAddress sipAddress)
        {
            this.sipAddress = sipAddress;
            ContactManager.Instance.FindContact(String.Format("{0}@{1}", sipAddress.UserName, sipAddress.Domain));
            ContactName.Text = sipAddress.UserName;
            ContactName.Visibility = Visibility.Visible;
            NewChat.Visibility = Visibility.Collapsed;

            try
            {
                chatRoom = LinphoneManager.Instance.LinphoneCore.GetChatRoom(sipAddress);
            }
            catch
            {
                Logger.Err("Can't create chat room for sip address {0}", sipAddress);
                throw;
            }
        }
 public void ComposingReceived(LinphoneChatRoom room)
 {
     WriteLog("ComposingReceived");
 }
Пример #9
0
 public void ComposingReceived(LinphoneChatRoom room)
 {
     WriteLog("ComposingReceived");
 }
 public void ComposingReceived(LinphoneChatRoom room)
 {
     Console.WriteLine("ComposingReceived");
 }
Пример #11
0
        /// <summary>
        /// Callback for LinphoneCoreListener
        /// </summary>
        public void ComposingReceived(LinphoneChatRoom room)
        {
            if (BaseModel.UIDispatcher == null) return;
            BaseModel.UIDispatcher.BeginInvoke(() =>
            {
                if (ComposingListener != null && room != null)
                {
                    string currentListenerSipAddress = ComposingListener.GetSipAddressAssociatedWithDisplayConversation();
                    LinphoneAddress peerAddress = room.PeerAddress;
                    string roomComposingSipAddress = String.Format("{0}@{1}", peerAddress.UserName, peerAddress.Domain);

                    if (currentListenerSipAddress != null && roomComposingSipAddress.Equals(currentListenerSipAddress))
                        ComposingListener.ComposeReceived();
                }
            });
        }
 /// <summary>
 /// Callback for LinphoneCoreListener
 /// </summary>
 public void ComposingReceived(LinphoneChatRoom room)
 {
 }