1. TemplateVariable

Class TemplateVariable

Model for template variables in e-mail templates.

Inheritance
object
TemplateVariable
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsNotifications
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class TemplateVariable

Constructors

TemplateVariable()

Initializes a new instance of the TemplateVariable class.

Declaration
public TemplateVariable()

TemplateVariable(JObject)

Initializes a new instance of the TemplateVariable class.

Declaration
public TemplateVariable(JObject jObject)
Parameters
TypeNameDescription
JObjectjObject

The property value.

Properties

Name

Gets or sets name of the variable.

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

Template

Gets or sets the template for the variable. For DateTime this can be a formatting, or it can be the name of the variable in the backend to be injected.

Declaration
public string Template { get; set; }
Property Value
TypeDescription
string

Templated

Gets or sets whether the variable is a template. This means that the value is injected by the backend and/or needs formatting.

Declaration
public bool? Templated { get; set; }
Property Value
TypeDescription
bool

VariableType

Gets or sets type of the variable.

Declaration
public TemplateVariableType? VariableType { get; set; }
Property Value
TypeDescription
TemplateVariableType

Methods

GetJObject()

Gets the values of this object as an .

Declaration
public JObject GetJObject()
Returns
TypeDescription
JObject

A .

If you have suggestions for improving this article, let us know!