Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

BulkmailResourceTemplate: Difference between revisions

From Catglobe Wiki
No edit summary
Replaced content with "Category: Archive"
Tag: Replaced
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{CGscriptClass_Template
[[Category: Archive]]
|Name=BulkmailResourceTemplate
|Description=A bulkmail resource template.
|Constructors=
{{CGscriptConstructors_Template|Parameters=
{{CGscriptParameters_Template|Type=string|Name=name|Description=Resource name}}
|Description=Create a new bulkmail resource template}}
|Methods=
{{CGscriptMethods_Template|ReturnType=Empty|Name=AddQuarantineToAddUserToAfterSend|Parameters=
{{CGscriptParameters_Template|Type=int|Name=quarantineResourceId|Description=Resource Id of the quarantine}}
|Description=Quarantine the receiving users according to this quarantine}}
{{CGscriptMethods_Template|ReturnType=Empty|Name=AddQuarantineToCheckBeforeSend|Parameters=
{{CGscriptParameters_Template|Type=int|Name=quarantineResourceId|Description=Resource Id of the quarantine}}
|Description=Prevent user from getting email/SMS if in this quarantine at the time of sending}}
{{CGscriptMethods_Template|ReturnType=Empty|Name=DefaultLanguage|Parameters=
{{CGscriptParameters_Template|Type=string|Name=isocode|Description=Iso code to set as default}}
|Description=Which Localized Name is the default}}
{{CGscriptMethods_Template|ReturnType=Empty|Name=Save|Description=Save the ResourceTemplate resource}}
{{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The string representation of the object.}}
|Properties=
{{CGscriptProperties_Template|ReturnType=bool|Name=DependantSendToCompleted|HasGetter=1|HasSetter=1|Description=Is the default that respondents that have completed their QAS gets message}}
{{CGscriptProperties_Template|ReturnType=bool|Name=DependantSendToNotStarted|HasGetter=1|HasSetter=1|Description=Is the default that respondents that have not yet started their QAS gets message}}
{{CGscriptProperties_Template|ReturnType=bool|Name=DependantSendToPartly|HasGetter=1|HasSetter=1|Description=Is the default that respondents that have partly completed their QAS gets message}}
{{CGscriptProperties_Template|ReturnType=bool|Name=IsBulkDependant|HasGetter=1|HasSetter=1|Description=Does the recipients of the bulkmail/SMS depend on previous sendings on another bulkmail/SMS}}
{{CGscriptProperties_Template|ReturnType=Dictionary|Name=LocalizedNames|HasGetter=1|HasSetter=1|Description=Localized Name of the ResourceTemplate resource}}
{{CGscriptProperties_Template|ReturnType=string|Name=ObjectTypeName|HasGetter=1|Description=The name of the type of object.}}
{{CGscriptProperties_Template|ReturnType=int|Name=ResourceId|HasGetter=1|Description=The Id of the ResourceTemplate}}
{{CGscriptProperties_Template|ReturnType=string|Name=ResourceName|HasGetter=1|Description=Name of the ResourceTemplate resource}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=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);

Latest revision as of 02:33, 28 February 2019