A delegatoris a user who has directed their incoming audio calls to be answered by another user known as a delegateuser. The class represents a delegator client while represents the delegate client. The delegate client exposes the property. This property returns a collection of instances representing all delegator clients that have delegated calls to the delegate client.
A delegate client can receive redirected calls on behalf of a delegator as well as direct audio calls on their own behalf. A delegated client must be able to distinguish between delegated and direct audio calls. It is important that your application alert a local user that an incoming call was delegated to the local user by another user so the local user can respond appropriately. For example, the local user may choose to ignore a direct call in favor of a delegated call.
The class allows your application to take incoming delegated calls, identify them as delegated calls, and provide your local user with the identity of the delegator as well as the identity of the caller. The DelegatorClientis not a full implementation of and only gives you access to five properties and one event. Only the property returns an object representing the delegator client. The other properties; , , , and return the same object that the delegated returns. You cannot access a delegator's contact list or current state using these properties.
The property on is the source of the event that is raised when a delegated call comes in. You must register for this event on the DelegatorClient. property to receive these delegated call events. To continue receiving call events for direct calls, you also register for events on the instance of the delegated client.
If you cache the two different instances, then you can use one event handler that uses simple logic to determine which of the two ConversationManagerinstances raised the ConversationAddedevent. With that determination, you can update your UI with a hint about the origin of the call. All following conversation logic in your application applies to either delegated or direct calls.