IEmailTemplateService

StockSharp.Web.Api.Interfaces

Реализует: IBaseEntityService<EmailTemplate>

Методы

GetTemplateParamsAsync
public Task<BaseEntitySet<ValueTuple<string, string>>> GetTemplateParamsAsync(long templateFileId, long domainId, CancellationToken cancellationToken)
result = iEmailTemplateService.GetTemplateParamsAsync(templateFileId, domainId, cancellationToken)

Lists the placeholders of a template file (words wrapped in triple underscores, such as ___YEAR___), each once, with the value it takes by default on a domain.

templateFileId
The identifier of the template's file, such as the HTML or the text of a mailing (Html, Text); not the identifier of an EmailTemplate.
domainId
The identifier of the domain whose texts fill the defaults, such as the unsubscribe text.
cancellationToken
Cancellation token.

Возвращает: The placeholders with their default values; a placeholder with no default has an empty value.