Class MailTemplateHelper
Defines the mail template helper.
Inheritance
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedEntities
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class MailTemplateHelperConstructors
MailTemplateHelper(EntityBase)
Initializes a new instance of the MailTemplateHelper class.
Declaration
public MailTemplateHelper(EntityBase user)Parameters
| Type | Name | Description |
|---|---|---|
| EntityBase | user |
The user. |
Properties
Name
Gets or sets the template name.
Declaration
public string Name { get; set; }Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody(CultureInfo)
Gets the body of the mail template.
Declaration
public string GetBody(CultureInfo culture)Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
The culture. |
Returns
| Type | Description |
|---|---|
| string |
The body of the mail template. |
GetDescription(CultureInfo)
Gets the description of the mail template.
Declaration
public string GetDescription(CultureInfo culture)Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
The culture. |
Returns
| Type | Description |
|---|---|
| string |
The description of the mail template. |
GetSubject(CultureInfo)
Gets the subject of the mail template.
Declaration
public string GetSubject(CultureInfo culture)Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
The culture. |
Returns
| Type | Description |
|---|---|
| string |
The subject of the mail template. |
GetTemplateVariables()
Gets the variables.
Declaration
public IList<TemplateVariable> GetTemplateVariables()Returns
| Type | Description |
|---|---|
| IList<>TemplateVariable |
The list of variables. |
LoadTypedMembersAsync()
Loads typed members.
Declaration
public Task LoadTypedMembersAsync()Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
SetBody(CultureInfo, string)
Sets the body of the mail template.
Declaration
public void SetBody(CultureInfo culture, string body)Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
The culture. |
| string | body |
The body of the mail template. |
SetDescription(CultureInfo, string)
Sets the description of the mail template.
Declaration
public void SetDescription(CultureInfo culture, string description)Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
The culture. |
| string | description |
The description of the mail template. |
SetSubject(CultureInfo, string)
Sets the subject of the mail template.
Declaration
public void SetSubject(CultureInfo culture, string subject)Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
The culture. |
| string | subject |
The subject of the mail template. |
SetTemplateVariables(IEnumerable<TemplateVariable>)
Sets the variables.
Declaration
public void SetTemplateVariables(IEnumerable<TemplateVariable> variables)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>TemplateVariable | variables |
The list of variables. |