Skip to main content

<a id=“SuperOffice_WebApi_Agents_IPreviewsAgent”></a> Interface IPreviewsAgent

Namespace: SuperOffice.WebApi.Agents
Assembly: SuperOffice.WebApi.dll
Get preview strings from a hint

Implements

IAgentBase, IDisposable

Methods

<a id=“SuperOffice_WebApi_Agents_IPreviewsAgent_GetPreviewAsync_System_String_SuperOffice_WebApi_RequestOptions_”></a> GetPreviewAsync(string, RequestOptions)

Parse a Preview hint and return a Preview. The returned Preview string may contain resource string identifiers (in square brackets), to be processed by the resource manager.<para />The Preview hint is either a literal text, representing itself, or a set of key/value pairs enclosed in curly braces. Each key is separated from its value by an equals sign, and each pair from the next by an ampersand, according to usual conventions.<para />A typical Preview hint could be {contact_id=123} or {appointment_id=222&amp;mode=simple}

Parameters

previewHint string requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<string&gt;