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
RequestResponse
public class TemplateVariable

Constructors

TemplateVariable()

Initializes a new instance of the TemplateVariable class.

Declaration
RequestResponse
public TemplateVariable()

TemplateVariable(JObject)

Initializes a new instance of the TemplateVariable class.

Declaration
RequestResponse
public TemplateVariable(JObject jObject)
Parameters
TypeNameDescription
JObjectjObject

The property value.

Properties

Name

Gets or sets name of the variable.

Declaration
RequestResponse
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
RequestResponse
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
RequestResponse
public bool? Templated { get; set; }
Property Value
TypeDescription
bool

VariableType

Gets or sets type of the variable.

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

Methods

GetJObject()

Gets the values of this object as an .

Declaration
RequestResponse
public JObject GetJObject()
Returns
TypeDescription
JObject

A .

Do you have some feedback for us?

If you have suggestions for improving this article,