【问题标题】:Contacts statuses using Lync SDK使用 Lync SDK 的联系人状态
【发布时间】:2012-10-02 14:30:05
【问题描述】:

是否可以使用 Lync SDK 获取联系人状态历史记录,或者监控和存储状态历史记录?

【问题讨论】:

    标签: api lync


    【解决方案1】:

    您可以编写一个订阅用户状态的应用程序,然后从他们的 StatusChanged 事件中写入某种状态历史记录。


    小起点:

    在 Endpoint 上创建状态视图:

    var presenceView = new RemotePresenceView(endpoint, new RemotePresenceViewSettings());
    

    订阅PresenceNotificationReceived事件:

    presenceView.PresenceNotificationReceived += OnPresenceNotificationReceived;
    

    并处理这个事件:

    private void PresenceNotificationReceived(object sender, RemotePresentitiesNotificationEventArgs e)
    {
        foreach (var notification in e.Notifications)
        {
            // Store the notification somewhere
        }
    }
    

    【讨论】:

    • 谢谢。我会尽快做到这一点。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-24
    • 2012-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多