1. Stylelabs.M.Sdk.Models.TypedEntities

Class MailTemplateHelper

Defines the mail template helper.

Inheritance

object

MailTemplateHelper

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedEntities

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class MailTemplateHelper

Constructors

MailTemplateHelper(EntityBase)

Initializes a new instance of the MailTemplateHelper class.

Declaration

public MailTemplateHelper(EntityBase user)

Parameters

TypeNameDescription
EntityBaseuserThe user.

Properties

Name

Gets or sets the template name.

Declaration

public string Name { get; set; }

Property Value

TypeDescription
string

Methods

GetBody(CultureInfo)

Gets the body of the mail template.

Declaration

public string GetBody(CultureInfo culture)

Parameters

TypeNameDescription
CultureInfocultureThe culture.

Returns

TypeDescription
stringThe body of the mail template.

GetDescription(CultureInfo)

Gets the description of the mail template.

Declaration

public string GetDescription(CultureInfo culture)

Parameters

TypeNameDescription
CultureInfocultureThe culture.

Returns

TypeDescription
stringThe description of the mail template.

GetSubject(CultureInfo)

Gets the subject of the mail template.

Declaration

public string GetSubject(CultureInfo culture)

Parameters

TypeNameDescription
CultureInfocultureThe culture.

Returns

TypeDescription
stringThe subject of the mail template.

GetTemplateVariables()

Gets the variables.

Declaration

public IList<TemplateVariable> GetTemplateVariables()

Returns

TypeDescription
IList<>TemplateVariableThe list of variables.

LoadTypedMembersAsync()

Loads typed members.

Declaration

public Task LoadTypedMembersAsync()

Returns

TypeDescription
TaskAn awaitable .

SetBody(CultureInfo, string)

Sets the body of the mail template.

Declaration

public void SetBody(CultureInfo culture, string body)

Parameters

TypeNameDescription
CultureInfocultureThe culture.
stringbodyThe body of the mail template.

SetDescription(CultureInfo, string)

Sets the description of the mail template.

Declaration

public void SetDescription(CultureInfo culture, string description)

Parameters

TypeNameDescription
CultureInfocultureThe culture.
stringdescriptionThe description of the mail template.

SetSubject(CultureInfo, string)

Sets the subject of the mail template.

Declaration

public void SetSubject(CultureInfo culture, string subject)

Parameters

TypeNameDescription
CultureInfocultureThe culture.
stringsubjectThe subject of the mail template.

SetTemplateVariables(IEnumerable)

Sets the variables.

Declaration

public void SetTemplateVariables(IEnumerable<TemplateVariable> variables)

Parameters

TypeNameDescription
IEnumerable<>TemplateVariablevariablesThe list of variables.
If you have suggestions for improving this article, let us know!