Inheritance: System.EventArgs
        /// <summary>
        /// Ons the link send offer answer.
        /// </summary>
        /// <returns>The link send offer answer.</returns>
        /// <param name="e">E.</param>
        private void OnLinkSendOfferAnswer(LinkOfferAnswerArgs e)
        {
            var handler = this.ReceiveSdpEvent;

            if (handler != null)
            {
                var sdpEventArgs = new SdpEventArgs()
                {
                    IsOffer = e.OfferAnswer.IsOffer,
                    Sdp     = e.OfferAnswer.SdpMessage,
                    PeerId  = e.PeerId
                };

                handler.Invoke(this, sdpEventArgs);
            }
        }
        private void OnReceiveSdp(object sender, SdpEventArgs e)
        {
            if (sessionId == null)
            {
                return;
            }

            if (VideoChatState == VideoChatState.WaitOffer)
            {
                if (e.IsOffer)
                {
                    this.webSyncClient.Call(sessionId, e.Sdp, caller.Id.ToString(), e.PeerId, this.receivers.Select(u => u.Id.ToString()).ToList(), Device.OS.ToString().ToLower());
                }

                VideoChatState = VideoChatState.SendOffer;
            }
            if (VideoChatState == VideoChatState.WaitAnswer)
            {
                this.webSyncClient.Accept(sessionId, e.Sdp, caller.Id.ToString(), e.PeerId, this.receivers.Select(u => u.Id.ToString()).ToList(), Device.OS.ToString().ToLower());
                VideoChatState = VideoChatState.Complete;
            }
        }
		/// <summary>
		/// Ons the link send offer answer.
		/// </summary>
		/// <returns>The link send offer answer.</returns>
		/// <param name="e">E.</param>
		private void OnLinkSendOfferAnswer(LinkOfferAnswerArgs e)
		{
			var handler = this.ReceiveSdpEvent;
			if (handler != null)
			{
				var sdpEventArgs = new SdpEventArgs()
				{
					IsOffer = e.OfferAnswer.IsOffer,
					Sdp = e.OfferAnswer.SdpMessage,
					PeerId = e.PeerId
				};

				handler.Invoke(this, sdpEventArgs);
			}
		}