Quarantine class
Revision as of 06:13, 2 July 2020 by Administrator (talk | contribs)
QuestionnaireResourceTemplate
A Questionnaire resource template.
Parent class
Inherits from ResourceTemplate
Constructors
- (string name "Resource name") - Create a new Questionnaire resource template
Methods
- (From ResourceTemplate) Empty DefaultLanguage(string isocode "Iso code to set as default") - Which Localized Name is the default
- (From ResourceTemplate) Empty Save() - Save the ResourceTemplate resource
- (From ResourceTemplate) Empty SaveProperties() - Save the properties of the ResourceTemplate resource. Ignores changes to all constant options in use
- (From object) string ToString() - The string representation of the object.
Properties
- int ErrorScriptResourceId { get; set; } - Set the OnError script
- int GatewayScriptResourceId { get; set; } - Set the gateway script
- (From ResourceTemplate) string LocalizedName { get; } - Localized Name for current user of the ResourceTemplate resource
- (From ResourceTemplate) Dictionary LocalizedNames { get; set; } - Localized Name of the ResourceTemplate resource
- string ObjectTypeName { get; } - The name of the type of object.
- (From ResourceTemplate) array Properties { get; } - Get the list of current properties. Use AddProperty/RemoveProperty to edit order
- (From ResourceTemplate) int ResourceId { get; } - The Id of the ResourceTemplate
- (From ResourceTemplate) string ResourceName { get; } - Name of the ResourceTemplate resource
- (From ResourceTemplate) int ResourceTemplateType { get; } - The type of resource that this ResourceTemplate covers
- (From ResourceTemplate) bool ResourceTimeregEnabled { get; set; } - Get/set ResourceTimeregEnabled
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.
Examples
//Get data from a quarantine exist in quarantine resource list
Quarantine Q = new Quarantine(15525566);
print(Q.Duration); //2400
print(Q.Name); //NewQuarantine3
print(Q.ObjectTypeName); //Quarantine
print(Q.ResourceId); //15525566
//Edit data from a quarantine exist in quarantine resource list
Quarantine Q = new Quarantine(15525401);
Q.Duration=1000;
Q.Name="NewName";
Q.Save();
//Create a new quarantine
//Ex 1:
Quarantine Q = new Quarantine("LastName1",15502953);
Q.Duration=200;
Q.Save();
//Ex 2:
Quarantine Q = new Quarantine("",15502953);
Q.Duration=300;
Q.Name = "LastName2";
Q.Save();
//Ex 3:
Quarantine Q = new Quarantine("FirstName3",15502953);
Q.Duration=500;
Q.Name = "LastName3";
Q.Save();