【发布时间】:2012-10-02 14:30:05
【问题描述】:
是否可以使用 Lync SDK 获取联系人状态历史记录,或者监控和存储状态历史记录?
【问题讨论】:
是否可以使用 Lync SDK 获取联系人状态历史记录,或者监控和存储状态历史记录?
【问题讨论】:
您可以编写一个订阅用户状态的应用程序,然后从他们的 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
}
}
【讨论】: