Search Results for

    Show / Hide Table of Contents

    Class TemplateDto

    Email template

    Inheritance
    object
    TemplateDto
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "TemplateDto")]
    public class TemplateDto : IValidatableObject

    Constructors

    View Source

    TemplateDto()

    Initializes a new instance of the TemplateDto class.

    Declaration
    [JsonConstructor]
    protected TemplateDto()
    View Source

    TemplateDto(Guid, string, List<TemplateVariable>, string, DateTime)

    Initializes a new instance of the TemplateDto class.

    Declaration
    public TemplateDto(Guid id = default, string name = null, List<TemplateVariable> variables = null, string content = null, DateTime createdAt = default)
    Parameters
    Type Name Description
    Guid id

    ID of template (required).

    string name

    Template name (required).

    List<TemplateVariable> variables

    Variables available in template that can be replaced with values (required).

    string content

    Content of the template (required).

    DateTime createdAt

    Created at time (required).

    Properties

    View Source

    Content

    Content of the template

    Declaration
    [DataMember(Name = "content", IsRequired = true, EmitDefaultValue = true)]
    public string Content { get; set; }
    Property Value
    Type Description
    string

    Content of the template

    View Source

    CreatedAt

    Created at time

    Declaration
    [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
    public DateTime CreatedAt { get; set; }
    Property Value
    Type Description
    DateTime

    Created at time

    View Source

    Id

    ID of template

    Declaration
    [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
    public Guid Id { get; set; }
    Property Value
    Type Description
    Guid

    ID of template

    View Source

    Name

    Template name

    Declaration
    [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Template name

    View Source

    Variables

    Variables available in template that can be replaced with values

    Declaration
    [DataMember(Name = "variables", IsRequired = true, EmitDefaultValue = true)]
    public List<TemplateVariable> Variables { get; set; }
    Property Value
    Type Description
    List<TemplateVariable>

    Variables available in template that can be replaced with values

    Methods

    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.