Difference between revisions of "BulkSMSResourceTemplate"

From Catglobe Wiki
Jump to: navigation, search
(Replaced content with "Category: Archive")
(Tag: Replaced)
 
Line 1: Line 1:
{{CGscriptClass_Template
+
[[Category: Archive]]
|Name=BulkSMSResourceTemplate
 
|Description=A bulkSMS resource template.
 
|Constructors=
 
{{CGscriptConstructors_Template|Parameters=
 
{{CGscriptParameters_Template|Type=string|Name=name|Description=Resource name}}
 
|Description=Create a new bulkSMS 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===
 
<source lang="javascript">
 
  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);
 
</source>
 

Latest revision as of 03:36, 28 February 2019