Class MailTemplateHelper

Defines the mail template helper.

Inheritance
object
MailTemplateHelper
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedEntities
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class MailTemplateHelper

Constructors

MailTemplateHelper(EntityBase)

Initializes a new instance of the MailTemplateHelper class.

Declaration
RequestResponse
public MailTemplateHelper(EntityBase user)
Parameters
TypeNameDescription
EntityBaseuser

The user.

Properties

Name

Gets or sets the template name.

Declaration
RequestResponse
public string Name { get; set; }
Property Value
TypeDescription
string

Methods

GetBody(CultureInfo)

Gets the body of the mail template.

Declaration
RequestResponse
public string GetBody(CultureInfo culture)
Parameters
TypeNameDescription
CultureInfoculture

The culture.

Returns
TypeDescription
string

The body of the mail template.

GetDescription(CultureInfo)

Gets the description of the mail template.

Declaration
RequestResponse
public string GetDescription(CultureInfo culture)
Parameters
TypeNameDescription
CultureInfoculture

The culture.

Returns
TypeDescription
string

The description of the mail template.

GetSubject(CultureInfo)

Gets the subject of the mail template.

Declaration
RequestResponse
public string GetSubject(CultureInfo culture)
Parameters
TypeNameDescription
CultureInfoculture

The culture.

Returns
TypeDescription
string

The subject of the mail template.

GetTemplateVariables()

Gets the variables.

Declaration
RequestResponse
public IList<TemplateVariable> GetTemplateVariables()
Returns
TypeDescription
IList<>TemplateVariable

The list of variables.

LoadTypedMembersAsync()

Loads typed members.

Declaration
RequestResponse
public Task LoadTypedMembersAsync()
Returns
TypeDescription
Task

An awaitable .

SetBody(CultureInfo, string)

Sets the body of the mail template.

Declaration
RequestResponse
public void SetBody(CultureInfo culture, string body)
Parameters
TypeNameDescription
CultureInfoculture

The culture.

stringbody

The body of the mail template.

SetDescription(CultureInfo, string)

Sets the description of the mail template.

Declaration
RequestResponse
public void SetDescription(CultureInfo culture, string description)
Parameters
TypeNameDescription
CultureInfoculture

The culture.

stringdescription

The description of the mail template.

SetSubject(CultureInfo, string)

Sets the subject of the mail template.

Declaration
RequestResponse
public void SetSubject(CultureInfo culture, string subject)
Parameters
TypeNameDescription
CultureInfoculture

The culture.

stringsubject

The subject of the mail template.

SetTemplateVariables(IEnumerable<TemplateVariable>)

Sets the variables.

Declaration
RequestResponse
public void SetTemplateVariables(IEnumerable<TemplateVariable> variables)
Parameters
TypeNameDescription
IEnumerable<>TemplateVariablevariables

The list of variables.

Do you have some feedback for us?

If you have suggestions for improving this article,