Click or drag to resize
ContactService Class
The ContactService object is accessible from the User object, and it provides access to functionality associated with contacts.
Inheritance Hierarchy
SystemObject
  Avaya.ClientServicesContactService

Namespace: Avaya.ClientServices
Assembly: AvayaClientServices (in AvayaClientServices.dll) Version: 493.0.70.0
Syntax
C#
public class ContactService

The ContactService type exposes the following members.

Properties
  NameDescription
Public propertyAddContactCapability
Capability describing whether the Contact service supports adding contacts.
Public propertyContactGroupsSupported
Indicates that Contact service supports Contacts Group functionality.
Public propertyContactLimits
Provides supported limits for the current enterprise contact provider.
Public propertyCreateContactGroupCapability
Capability describing whether the Contact Service supports Contact Group creation or not.
Public propertyDeleteContactCapability
Capability describing whether the Contact service supports deleting contacts.
Public propertyDeleteContactGroupCapability
Capability describing whether the Contact Service supports Contact Group removal or not.
Public propertyFavoriteContactsCapability
Capability describing whether the Contact service supports favorite contacts.
Public propertyIsServiceAvailable
Returns true if the Contact service is available.
Public propertyMaxContactGroupNameLength
Maximum length of Contact Group name.
Public propertyMaxNumberOfContactGroups
Maximum number of Contact Groups allowed for usage.
Public propertyMaxNumberOfContactsPerGroup
Maximum number of Contacts allowed per Group.
Public propertyNetworkContactSearchByDepartmentCapability
Capability describing whether the Contact service supports contact search by department.
Public propertyNetworkContactSearchByLocationCapability
Capability describing whether the Contact service supports contact search by location.
Public propertyNetworkContactSearchByNameCapability
Capability describing whether the Contact service supports contact search by name.
Public propertyNetworkSearchContactCapability
Capability describing whether the Contact service supports searching contacts.
Public propertyNetworkSearchTerminalCapability
Capability describing whether the Contact service supports searching contacts.
Public propertyResolveEnterpriseContactsCapability
Capability describing whether the Contact Service supports ResolveContacts(ResolveContactsRequest) functionality.
Public propertyUpdateContactCapability
Capability describing whether the Contact service supports updating contacts.
Top
Methods
  NameDescription
Public methodAddContact
Adds a new contact.
Public methodChangeSearchContactsRequest Obsolete.
Change the search contacts request with a given new query string. All other parameters are immutable.
Public methodCreateContactGroup
Creates a Contact Group with specified group name and group members.
Public methodCreateEditableContact
Creates a new EditableContact object with default values.
Public methodCreateEditableContactFromContact
Creates a new editable contact object from a given existing contact.
Public methodDeleteContact
Deletes an existing contact.
Public methodDeleteContactGroup
Deletes Contact Group.
Public methodGetAvailableContactSourceTypes
Returns the list of available and online ContactSourceType. If there is more than one source, the AllContacts source will be added into the online list.
Public methodGetContactGroups
Get the contact groups list from the given source.
Public methodGetContacts
Get the contact list from the given source.
Public methodGetMatchingContactForDirectoryContact
Get matching contact (from cache) to the one from search results.
Public methodGetSelfContact
Gets the contact information for the currently logged-in user..
Public methodResolveContacts
Search for the contacts with given request parameters. There can be only one search in progress with a particular string. If such a search already exists, a new one won't be started.
Public methodSearchContacts(SearchContactsWatcher, ContactSearchRequest)
Extended search for the contacts with given request parameters. There can be only one search in progress with a particular request. If such a search already exists, a new one won't be started.
Public methodSearchContacts(SearchContactsWatcher, String, SearchScopeType, SearchSourceType, UInt32, UInt32)
Search for the contacts with given request parameters. There can be only one search in progress with a particular string. If such a search already exists, a new one won't be started.
Public methodSearchTerminals
Search for the terminals with given request parameters. There can be only one search in progress with a particular request. If such a search already exists, a new one won't be started.
Public methodUpdateContact
Updates an existing contact.
Top
Events
  NameDescription
Public eventContactGroupsLoadingFailed
Occurs when the loading of contact groups fails.
Public eventContactLoadingComplete
Occurs once all the contacts have been loaded from their underlying sources.
Public eventContactLoadingFailed
Occurs when the loading of contacts fails.
Public eventContactProviderFailed
Occurs when an underlying contact provider fails.
Public eventContactServiceAvailable
Occurs when the contact service becomes available for use.
Public eventContactServicesAvailableProviderListChanged
Occurs when the list of available contact provider changes. For example, if ACS provider has stopped working, an event will be triggered.
Public eventContactServicesCapabilitiesChanged
Occurs when any of the contact service's capabilities changes.
Public eventContactServiceSelfContactUpdated
Occurs when self contact is updated.
Public eventContactServiceUnavailable
Occurs when the contact service becomes unavailable for use.
Top
Remarks
The ContactService object provides a set of APIs that allow application developers to manage a user's contacts and perform searches for other users.

In general, the capabilities and the set of allowed operations are dependent on the state of the contact related servers and services.

The client application is notified about status updates reported by the contact services through event handlers that the application has registered on the ContactService object's events. These updates may be the result of local operations on the ContactService object as well as remote changes initiated by either the service/server or other users.

In order to retrieve a list of contacts, call GetContacts(ContactRetrievalWatcher, ContactSourceType) method. This should be done after ContactServiceAvailable event was received.

See Also