本文整理汇总了C#中Conversation.getDisplayName方法的典型用法代码示例。如果您正苦于以下问题:C# Conversation.getDisplayName方法的具体用法?C# Conversation.getDisplayName怎么用?C# Conversation.getDisplayName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Conversation
的用法示例。
在下文中一共展示了Conversation.getDisplayName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onConversationListChange
/**
* SkypeListener Override: Tutorial Handler - Conversation ListType.
* <br /><br />
* If it's <em>not</em> a LIVE_CONVERSATIONS change, ignore it; if it's not a
* type we're interested in, simply write it to the console.
* <ul>
* <li>Tutorial 5 - Looks for RINGING_FOR_ME so we can join in.</li>
* <li>Tutorial 6 - Looks for IM_LIVE or RECENTLY_LIVE/NONE. Former case, indicates
* that a call is in progress; latter case, indicates that a call has ended.</li>
* </ul>
*
* @param conversation
* The affected Conversation.
* @param type
* The Conversation list type that triggered this event.
* @param added
* Ignored.
*
* @since 1.0
*
*/
public void onConversationListChange(Skype obj, Conversation conversation, Conversation.ListType type, bool added)
{
MySession.myConsole.printf("%s: ConversationListChange fired on: %s%n",
mySession.myTutorialTag, conversation.getDisplayName());
if (type == Conversation.ListType.LIVE_CONVERSATIONS)
{
Conversation.LocalLiveStatus liveStatus = conversation.getLocalLiveStatus();
MySession.myConsole.printf("%s: Live status changed to %s%n",
mySession.myTutorialTag, liveStatus);
if (liveStatus == Conversation.LocalLiveStatus.RINGING_FOR_ME)
{
activeConversation = conversation;
activeConversationParticipants = conversation.getParticipants(Conversation.ParticipantFilter.ALL);
conversation.join();
mySession.callActive = true;
}
else if (liveStatus == Conversation.LocalLiveStatus.RECENTLY_LIVE || liveStatus == Conversation.LocalLiveStatus.NONE)
{
MySession.myConsole.printf("%s: Call finished.%n", mySession.myTutorialTag);
activeConversation = null;
activeConversationParticipants = null;
mySession.callActive = false;
}
else if (liveStatus == Conversation.LocalLiveStatus.IM_LIVE)
{
MySession.myConsole.printf("%s: Live session is up.%n", mySession.myTutorialTag);
}
else
MySession.myConsole.printf("%s: Ignoring Conversation status %s%n",
mySession.myTutorialTag, liveStatus);
}
}