grmihel
grmihel

Reputation: 846

How to make a presence lookup with UCMA

I'm having a LocalOwnerPresence object, which I want to get the PresenceState object of, to compute against another PresenceState to check if they are equals. Does anyone knows where the PresenceState of a LocalOwnerPresence is located?

Upvotes: 0

Views: 340

Answers (1)

Tom Morgan
Tom Morgan

Reputation: 2365

The LocalOwnerPresence is part of the endpoint (either Application or User).

To retrieve presence for the local endpoint, you can use

_endpoint.LocalOwnerPresence.BeginSubscribe()

Before doing this though, you should make sure you subscribe to the PresenceNotificationReceived event handler so that you can receive events.

Upvotes: 1

Related Questions