Package africa.sendbyte.templates
Class Template
java.lang.Object
africa.sendbyte.templates.Template
A saved, server-side email template.
Templates.get(String) returns the full record including the stored
html and mjml source; create/list responses populate the summary
fields (id, name, subject, version, format, timestamps).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe stored body format, e.g.getHtml()The stored HTML body.getId()Unique template identifier (a UUID).getMjml()The original MJML source, if the template was authored in MJML.getName()The unique, human-readable template name within the project.The subject line, which may contain Handlebars variables.getText()The version counter, bumped on each update.voidsetCreatedAt(String createdAt) voidvoidvoidvoidvoidvoidsetSubject(String subject) voidvoidsetUpdatedAt(String updatedAt) voidsetVersion(Integer version)
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
getId
Unique template identifier (a UUID). Pass astemplate_idwhen sending. -
setId
-
getName
The unique, human-readable template name within the project. -
setName
-
getSubject
The subject line, which may contain Handlebars variables. -
setSubject
-
getVersion
The version counter, bumped on each update. -
setVersion
-
getFormat
The stored body format, e.g.htmlormjml. -
setFormat
-
getHtml
The stored HTML body. Present onTemplates.get(java.lang.String);nullon create/list. -
setHtml
-
getText
-
setText
-
getMjml
The original MJML source, if the template was authored in MJML. -
setMjml
-
getCreatedAt
-
setCreatedAt
-
getUpdatedAt
-
setUpdatedAt
-