检索不在联系人列表中的用户的状态 [英] Retrievening Presence for users that are not in the contact list
问题描述
据我所知,使用Communicator Automation API无法对不属于的用户进行状态更改(通过Messenger.OnContactStatusChange)。本地用户的联系人列表。
I understand that with the Communicator Automation API is not possible to suscribe to status changes (via Messenger.OnContactStatusChange) for users that do not belong the contact list of the local user.
这可以通过UC客户端API实现吗?
Is this possible with the UC Client API?
祝你好运,
Felipe
推荐答案
您应该有一个名为"contactsSubscription"的订阅已经(在_IUccEndpointEvents.Enable处理程序上创建)。只需为其添加新的在线实体,您就应该在_IUccCategoryInstanceEvents.OnCategoryInstanceValueModified处理程序中接收有关其状态更改的通知。
You should have a subscription named "contactsSubscription" already (created on your _IUccEndpointEvents.Enable handler). Just add new presentities to it and you should be receiving notifications for their status changes on your _IUccCategoryInstanceEvents.OnCategoryInstanceValueModified handler.
var presentity = contactsSubscription.CreatePresentity(UccApiUtil.ParseSipUri(uri), null);
contactsSubscription.AddPresentity(presentity);
contactsSubscription.Subscribe(null);
这篇关于检索不在联系人列表中的用户的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!