当前位置: 首页>>代码示例>>C#>>正文


C# Call.Answer方法代码示例

本文整理汇总了C#中Call.Answer方法的典型用法代码示例。如果您正苦于以下问题:C# Call.Answer方法的具体用法?C# Call.Answer怎么用?C# Call.Answer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Call的用法示例。


在下文中一共展示了Call.Answer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: skype_CallStatus

        private void skype_CallStatus(Call call, TCallStatus Status)
        {
            switch (Status)
            {
                case TCallStatus.clsRinging:
                    if (_skype.ActiveCalls.Count > 1)
                    {
                        foreach (Call activeCall in _skype.ActiveCalls)
                        {
                            call.Join(activeCall.Id);
                            break;
                        }
                    }
                    else
                        call.Answer();
                    break;

                default:
                    break;
            }
        }
开发者ID:dangilkerson,项目名称:SAC,代码行数:21,代码来源:SACForm.cs

示例2: OurCallStatus

        public void OurCallStatus(Call call, TCallStatus status)
        {
            try
            {
                if (status == TCallStatus.clsInProgress /*call.VideoSendStatus == TCallVideoSendStatus.vssAvailable*/)
                {
                    call.StartVideoSend();
                }
            }
            catch
            {

            }

            // Always use try/catch with ANY Skype calls.
            try
            {
                if (status == TCallStatus.clsRinging)
                {
                    if (numCalls == 0)
                    {
                        call.Answer();

                        callID = call.Id;
                        numCalls++;
                    }

                    else if (numCalls == 1 && callID != call.Id)
                    {
                       try
                       {
                           this.BeginInvoke((Action)(() =>
                           {
                               call.Finish();
                           }));
                       }
                       catch (InvalidCastException e)
                       {
                       }
                    }
                }
                // If this call is from a SkypeIn/Online number, show which one.
                else if (call.Type == TCallType.cltIncomingP2P && status == TCallStatus.clsInProgress && call.Id == callID)
                {
                    selectedSkypeChatUser = call.PartnerHandle.ToString();

                    this.BeginInvoke((Action)(() =>
                    {
                        skype.SendMessage(selectedSkypeChatUser, Properties.Settings.Default.controllerMessage);
                    }));

                    chatUserSelected = true;

                    user_combobox.ResetText();
                    user_combobox.SelectedText = call.PartnerHandle.ToString();

                    if (!skypeUserTabs.Contains(new SkypeUserTab(call.PartnerHandle)))
                    {
                        user_combobox.Items.Add(call.PartnerHandle);
                        var newTabUser = new SkypeUserTab(call.PartnerHandle);
                        skypeUserTabs.Add(newTabUser);
                        tabUsers.Controls.Add(newTabUser.tabPage);
                    }

                }

                else if (status == TCallStatus.clsFinished && call.Id == callID)
                {
                    numCalls--;
                    callID = 0;
                }
            }
            catch (Exception e)
            {
            }
        }
开发者ID:artica,项目名称:skypeRobotController_DTMF,代码行数:76,代码来源:Form1.cs

示例3: skype_CallStatus

        private void skype_CallStatus(Call call, TCallStatus status)
        {
            if (status == TCallStatus.clsRinging)
            {
                if (call.PartnerHandle == txbConsultant.Text)
                {
                    call.Answer();
                    Point screenBounds = ScreenBounds;
                    SkypeAutomation.SkypeObj.SendMessage(txbConsultant.Text, string.Format("screenbounds({0},{1})", screenBounds.X, screenBounds.Y));

                    SkypeAutomation.ShareFullScreen();
                }
                else
                    call.Finish();
            }
        }
开发者ID:ravurivasu,项目名称:Skype-Examples,代码行数:16,代码来源:FormUser.cs


注:本文中的Call.Answer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。