dotmailer SDK: dotMailer.Sdk.TemplateFactory Class Reference

dotmailer SDK

dotmailer SDK
Tools to access and manage an account in the dotMailer system
dotMailer.Sdk.TemplateFactory Class Reference

Provides methods for handling templates. More...

Inheritance diagram for dotMailer.Sdk.TemplateFactory:

Public Member Functions

DmTemplate GetTemplate (int templateId)
 Retrieves the details of the specified template.
 
DmCampaign ConvertToCampaign (string campaignName, IDmTemplate template)
 Converts the specified template into a campaign
 
DmTemplateCollection ListTemplates ()
 Retrieves a list of templates.
 
void UpdateTemplate (DmTemplate template)
 Updates a specified template - useful if you need to make changes to any template settings or content.
 
DmTemplate CreateTemplate (IDmTemplate template)
 Creates a new template within your dotMailer account.
 

Detailed Description

Provides methods for handling templates.

Member Function Documentation

DmCampaign dotMailer.Sdk.TemplateFactory.ConvertToCampaign ( string  campaignName,
IDmTemplate  template 
)

Converts the specified template into a campaign

Parameters
campaignName
template
Returns
DmCampaign that was created
DmTemplate dotMailer.Sdk.TemplateFactory.CreateTemplate ( IDmTemplate  template)

Creates a new template within your dotMailer account.

Parameters
templateTemplate to create
Returns
Created template, returned with an ID.
DmTemplate dotMailer.Sdk.TemplateFactory.GetTemplate ( int  templateId)

Retrieves the details of the specified template.

Parameters
templateIdThe template for which full details are required.
Returns
A template with all details provided.
DmTemplateCollection dotMailer.Sdk.TemplateFactory.ListTemplates ( )

Retrieves a list of templates.

Returns
A collection of templates.
void dotMailer.Sdk.TemplateFactory.UpdateTemplate ( DmTemplate  template)

Updates a specified template - useful if you need to make changes to any template settings or content.

Parameters
templateTemplate to update.
Generated by   doxygen 1.8.3