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
Type | Name | Description |
---|---|---|
JObject | jObject |
The property value. |
Properties
Name
Gets or sets name of the variable.
Declaration
RequestResponse
public string Name { get; set; }
Property Value
Type | Description |
---|---|
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
Type | Description |
---|---|
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
Type | Description |
---|---|
bool |
VariableType
Gets or sets type of the variable.
Declaration
RequestResponse
public TemplateVariableType? VariableType { get; set; }
Property Value
Type | Description |
---|---|
TemplateVariableType |
Methods
GetJObject()
Gets the values of this object as an .
Declaration
RequestResponse
public JObject GetJObject()
Returns
Type | Description |
---|---|
JObject |
A . |