Skip to main content

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent”></a> Interface IAssociateAgent

Namespace: SuperOffice.WebApi.Agents
Assembly: SuperOffice.WebApi.dll
Associate utilities, notes, not user admininstration

Implements

IAgentBase, IDisposable

Methods

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_GetAssociateAsync_System_Int32_SuperOffice_WebApi_RequestOptions_”></a> GetAssociateAsync(int, RequestOptions)

Gets a specific Associate object.

Parameters

associateId int The identifier of the Associate object requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<Associate&gt; Associate

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_GetAssociateByPersonIdAsync_System_Int32_SuperOffice_WebApi_RequestOptions_”></a> GetAssociateByPersonIdAsync(int, RequestOptions)

Returns the associate that belongs to this person if the person is an associate.

Parameters

personId int The person id requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<Associate&gt; Associate if person is associate

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_GetAssociateListAsync_System_Int32___SuperOffice_WebApi_RequestOptions_”></a> GetAssociateListAsync(int[], RequestOptions)

Gets an array of specific Associate objects.

Parameters

associateIds int[] The identifiers of the Associate object requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<Associate[]&gt; Array of Associate objects

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_GetAssociatesByGroupAsync_System_Int32_System_Int32_SuperOffice_WebApi_RequestOptions_”></a> GetAssociatesByGroupAsync(int, int, RequestOptions)

Method that returns a array of associate , based on DiaryGroupType and groupId. The differernt types are, Userdefined, Usergroup and ResourceHeadings

Parameters

groupId int Id of the group type int The type of group. See DiaryGroupType requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<Associate[]&gt; Array of associate

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_GetEncryptionKeyAsync_SuperOffice_WebApi_RequestOptions_”></a> GetEncryptionKeyAsync(RequestOptions)

Get unique key made from AssociateId and dbTag used for local storage encryption operations.

Parameters

requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<string&gt; encryptionKey

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_GetNoteAsync_System_Int32_SuperOffice_WebApi_RequestOptions_”></a> GetNoteAsync(int, RequestOptions)

Returns an array of strings(notepad pages).

Parameters

associateId int The associate id requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<string[]&gt; Returns an array of strings(notepad pages).

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_LogOffWindowsUsersAsync_System_Int32___SuperOffice_WebApi_RequestOptions_”></a> LogOffWindowsUsersAsync(int[], RequestOptions)

Method that logs off associates that are logged on to the win client

Parameters

associateIds int[] The ids of the associates that shall be logged off requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task A void return

<a id=“SuperOffice_WebApi_Agents_IAssociateAgent_SaveNoteAsync_System_Int32_System_String___SuperOffice_WebApi_RequestOptions_”></a> SaveNoteAsync(int, string[], RequestOptions)

Saves an array of strings(notepad pages).

Parameters

associateId int The associate id note string[] The array of strings(notepad pages). requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task