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


C# Conversation.getDisplayName方法代码示例

本文整理汇总了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);
            }
        }
开发者ID:ravurivasu,项目名称:Skype-Examples,代码行数:54,代码来源:Listeners.cs


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