检索不在联系人列表中的用户的状态 [英] Retrievening Presence for users that are not in the contact list

查看:73
本文介绍了检索不在联系人列表中的用户的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆