Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
PresenceService Class
PresenceService Properties
PresenceService Methods
PresenceService Events

# PresenceService Class

The class encapsulates all of presence related features available to the user.
Inheritance Hierarchy
System
Object
Avaya.ClientServices
PresenceService

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
Copy

    public class PresenceService

The PresenceService type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| AutoAwayTimeout | The user inactivity timeout period in milliseconds. Used to set up the inactivity timer in runtime.
| AutomaticModeCapability | Capability describing whether the Presence service supports automatic mode for self-presence.
| AutomaticPresenceStates | Returns the collection of supported automatic self-presence states.
| IsSendAllCallsOnDoNotDisturbEnabled | A Boolean value controlling a linkage between "Do not Disturb" presence state and "Send All Calls" call service feature at runtime.
| IsServiceAvailable | Property exposing current service availability status.
| IsServiceConfigured | Property exposing current service configuration status.
| ManualPresenceStates | Returns the collection of supported manual self-presence states.
| PresenceAccessControlList | Property representing PresenceAccessControlList.
| PresenceAccessControlListCapability | Capability describing whether the Presence service supports presence Access Control List(ACL).
| PresenceNoteMaxTextLength | Returns the maximum text length value (in characters) accepted for presence note.
| SelfPresence | Property to get current self-presence information.

Top
Methods

| Name | Description
--- | --- | ---
| CreatePresenceListSubscription | Creates a new empty ad-hoc presence subscription object.
| PublishPresence | Publishes presence state, location mode and optional note for the local user.
| RemovePresenceListSubscription | Removes the specified ad-hoc presence list subscription.

Top
Events

| Name | Description
--- | --- | ---
| PresencePublishFailed | Reported when request has failed.
| PresencePublishSuccessful | Reported when request has successfully completed.
| PresenceServiceAvailable | Reported when presence service becomes available.
| PresenceServiceUnavailable | Reported when presence service becomes unavailable.
| SelfPresenceReceived | Reported when information has been updated.

Top
Remarks
The service is configured with a presence configuration object created by the client application as part of the user configuration object. In order to get the service object and leverage the available presence features the presence service property of the user object is used. The presence service encapsulates such features as publishing presence, subscribing for self-presence update events, creating presence list subscriptions to watch presence of other users.
See Also

#### Reference

Avaya.ClientServices Namespace

© 2017 Avaya LLC. All Rights Reserved.