BulkSMSResourceTemplate class

From Catglobe Wiki
Revision as of 04:35, 28 February 2019 by Administrator (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>BulkSMSResourceTemplate</nowiki> |Description=<nowiki>A bulkSMS resource template.</nowiki> |Constructors= {{CGscriptConstructors_Templa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

BulkSMSResourceTemplate



A bulkSMS resource template.

Constructors

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

Methods

  • Empty AddQuarantineToAddUserToAfterSend(int quarantineResourceId "Resource Id of the quarantine") - Add to this quarantine upon receiving email
  • 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
  • Array of objects GetQuarantineToAddUserToAfterSend() - List of quarantines to add to upon receiving email
  • Array of objects GetQuarantineToAddUserToCheckBeforeSend() - List of quarantines to check before sending
  • Empty Save() - Save the ResourceTemplate resource
  • Empty SaveProperties() - Save the properties of the ResourceTemplate resource. Ignores changes to all constant options in use
  • 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
  • string LocalizedName { get; } - Localized Name for current user of the ResourceTemplate resource
  • Dictionary LocalizedNames { get; set; } - Localized Name of the ResourceTemplate resource
  • string ObjectTypeName { get; } - The name of the type of object.
  • array Properties { get; } - Get the list of current properties. Use AddProperty/RemoveProperty to edit order
  • int ResourceId { get; } - The Id of the ResourceTemplate
  • string ResourceName { get; } - Name of the ResourceTemplate resource
  • int ResourceTemplateType { get; } - The type of resource that this ResourceTemplate covers
  • bool ResourceTimeregEnabled { get; set; } - Get/set ResourceTimeregEnabled
  • TypeInformation TypeInformation { get; } - Get information about this class.

Examples

  BulkSMSResourceTemplate templates=new BulkSMSResourceTemplate("BulkSMS templates 2");
templates.IsBulkDependant =true;
templates.DependantSendToPartly = true;
templates.DependantSendToCompleted  = true;
templates.DependantSendToNotStarted  = true;
templates.LocalizedNames = {"da-DK": "BulkSMS templates 2"};
templates.DefaultLanguage("da-DK");
templates.Save();
print(templates.ResourceId);
print(templates.ResourceName);
print(templates.LocalizedNames);