Skip to main content

Interface IAssociateAgent

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

Implements

IAgentBase, IDisposable

Methods

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

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

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

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

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

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).

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

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