Difference between revisions of "BulkmailResourceTemplate"

From Catglobe Wiki
Jump to: navigation, search
Line 31: Line 31:
  
 
=== Examples ===
 
=== Examples ===
 +
<source lang="javascript">
 +
BulkmailResourceTemplate templates=new BulkmailResourceTemplate("Bulkmail templates 2");
  
BulkmailResourceTemplate templates=new BulkmailResourceTemplate("Bulkmail templates 2");  
+
templates.IsBulkDependant =true;
  
templates.IsBulkDependant =true;  
+
templates.DependantSendToPartly = true;
  
templates.DependantSendToPartly = true;  
+
templates.DependantSendToCompleted = true;
  
templates.DependantSendToCompleted = true;  
+
templates.DependantSendToNotStarted = true;
  
templates.DependantSendToNotStarted = true;  
+
templates.LocalizedNames = {"da-DK": "Bulkmail templates 2"};
  
templates.LocalizedNames = {"da-DK": "Bulkmail templates 2"};  
+
templates.DefaultLanguage("da-DK");
  
templates.DefaultLanguage("da-DK");  
+
templates.Save();
  
templates.Save();  
+
print(templates.ResourceId);
  
print(templates.ResourceId);
+
print(templates.ResourceName);
 
 
print(templates.ResourceName);  
 
  
 
print(templates.LocalizedNames);
 
print(templates.LocalizedNames);
 +
</source>

Revision as of 09:40, 14 July 2016

BulkmailResourceTemplate



A bulkmail resource template.

Constructors

  • (string name "Resource name") - Create a new bulkmail resource template

Methods

  • Empty AddQuarantineToAddUserToAfterSend(int quarantineResourceId "Resource Id of the quarantine") - Quarantine the receiving users according to this quarantine
  • Empty AddQuarantineToCheckBeforeSend(int quarantineResourceId "Resource Id of the quarantine") - Prevent user from getting email/SMS if in this quarantine at the time of sending
  • Empty DefaultLanguage(string isocode "Iso code to set as default") - Which Localized Name is the default
  • Empty Save() - Save the ResourceTemplate resource
  • string ToString() - The string representation of the object.

Properties

  • bool DependantSendToCompleted { get; set; } - Is the default that respondents that have completed their QAS gets message
  • bool DependantSendToNotStarted { get; set; } - Is the default that respondents that have not yet started their QAS gets message
  • bool DependantSendToPartly { get; set; } - Is the default that respondents that have partly completed their QAS gets message
  • bool IsBulkDependant { get; set; } - Does the recipients of the bulkmail/SMS depend on previous sendings on another bulkmail/SMS
  • Dictionary LocalizedNames { get; set; } - Localized Name of the ResourceTemplate resource
  • string ObjectTypeName { get; } - The name of the type of object.
  • int ResourceId { get; } - The Id of the ResourceTemplate
  • string ResourceName { get; } - Name of the ResourceTemplate resource
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

BulkmailResourceTemplate templates=new BulkmailResourceTemplate("Bulkmail templates 2");

templates.IsBulkDependant =true;

templates.DependantSendToPartly = true;

templates.DependantSendToCompleted = true;

templates.DependantSendToNotStarted = true;

templates.LocalizedNames = {"da-DK": "Bulkmail templates 2"};

templates.DefaultLanguage("da-DK");

templates.Save();

print(templates.ResourceId);

print(templates.ResourceName);

print(templates.LocalizedNames);