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


C# SktConversation.GetParticipants方法代码示例

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


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

示例1: AddCurrentParticipantsToNewConv

 public void AddCurrentParticipantsToNewConv(SktConversation conv)
 {
     participants = conv.GetParticipants(SktConversation.PARTICIPANTFILTER.ALL);
     foreach (Participant person in participants) AddParticipantToConversation(person);
 }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:5,代码来源:VideoCalls.cs

示例2: OnConversationSpawnConference

        // Now, this is the tricky bit! What happens when you first start out with an 1-on-1 call,
        // and then someone adds more people, making it into a conference call? Well, what happens is this:
        // 1. a new conversation is created, both people from old 1-on-1 call and the new ones get added in;
        // 2. the new conversation goes live;
        // 3. the old 1-on-1 conversation goes OFF live;
        // 4. in the old 1-on-1, a message gets posted with type SktMessage.TYPE.SPAWNED_CONFERENCE
        //    and this event will fire with new conversation in the e.spawned field.
        // At that point, what we need to do is to switcheverything over to that one.
        void OnConversationSpawnConference(SktConversation sender, SktEvents.OnConversationSpawnConferenceArgs e)
        {
            if (sender == liveSession)
            {
                // As participants are conversation-specific, our participants list is now invalid as well.
                // At this point we will need to do a *complete* re-load of both participants and the UI!
                participants.Clear();
                while (participantPanel.Controls.Count > 0) participantPanel.Controls.RemoveAt(0);

                liveSession = e.spawned;
                participants = liveSession.GetParticipants(SktConversation.PARTICIPANTFILTER.ALL);
                int participantsInNewConv = participants.Count;
                for (int i = 0; i < participantsInNewConv; i++)
                    AddParticipantToLiveSession((Participant)participants[i]);
            }
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:24,代码来源:IncomingCalls.cs


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