简体   繁体   English

对Skype for Business中的“外出”状态做出反应

[英]React to “Out of Office” status in Skype for Business

The Lync 2013 SDK publishes a ContactAvailability property for contacts, with values as described here: Lync 2013 SDK为联系人发布ContactAvailability属性,其值如下所述:

https://msdn.microsoft.com/en-us/library/microsoft.lync.controls.contactavailability_di_3_uc_ocs14mreflyncwpf.aspx https://msdn.microsoft.com/zh-cn/library/microsoft.lync.controls.contactavailability_di_3_uc_ocs14mreflyncwpf.aspx

Each of the values in this enumeration is an indication of the color and pattern shown beside the contact in Lync 2013. 该枚举中的每个值都表示Lync 2013中联系人旁边显示的颜色图案

It seems to me that the Skype for Business 2015 client has added a new color, coinciding with an Outlook calendar entry that is tagged with "Out of Office", as seen here: 在我看来,Skype for Business 2015客户端添加了一种新颜色,与带有“外出”标签的Outlook日历条目一致,如下所示:

在此处输入图片说明

The Lync 2013 Client SDK simply returns the Free enumeration value (same as green) for this new(??) purple status indicator. Lync 2013 Client SDK只需为此新的紫色状态指示器返回Free枚举值(与绿色相同)。

My question is, does anyone know of a way to detect when a contact's status is such that SfB would display that contact's icon with a purple "Out of Office" status indicator? 我的问题是,是否有人知道一种检测联系人状态的方法,以便SfB会使用紫色的“不在办公室”状态指示器显示该联系人的图标? I haven't been able to find any documentation on this. 我至今找不到任何文档。

Thanks. 谢谢。

I'm not sure from a Lync Client SDK point of view, as I haven't done much with presence in the Lync Client SDK. 从Lync Client SDK的角度来看,我不确定,因为我对Lync Client SDK的展示还没有做太多事情。

In a UMCA application where you have subscribed to presence changes you get a RemotePresentityNotification object you can get the AggregatedPresenceState.Activity. 在已订阅状态更改的UMCA应用程序中,您将获得RemotePresentityNotification对象,而您可以获取AggregatedPresenceState.Activity。 ActivityToken which will be set to the string "out-of-office" as defined in the MS-Pres spec. ActivityToken ,它将被设置为MS-Pres规范中定义的字符串“ off-of-office”。

I assume there will be some way to get the ActivityToken from the Lync Client SDK. 我假设将有某种方法可以从Lync Client SDK获取ActivityToken。 My guess would be asking for ContactInformationType .ActivityId or Activity from the lync user presence . 我的猜测是从lync用户状态中请求ContactInformationType .ActivityId或Activity。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM