本文整理汇总了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);
}
示例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]);
}
}