Difference between revisions of "GroupBuilderTrackingStatusVariable class"
Nguyenduyan (talk | contribs) |
|||
Line 2: | Line 2: | ||
|Name=<nowiki>GroupBuilderTrackingStatusVariable</nowiki> | |Name=<nowiki>GroupBuilderTrackingStatusVariable</nowiki> | ||
|Description=<nowiki>Represents a group builder variable for tracking status.</nowiki> | |Description=<nowiki>Represents a group builder variable for tracking status.</nowiki> | ||
− | |Constructors= | + | |InheritsFrom=GroupBuilderVariable|Constructors= |
{{CGscriptConstructors_Template|Description=<nowiki>Create new variable</nowiki>}} | {{CGscriptConstructors_Template|Description=<nowiki>Create new variable</nowiki>}} | ||
|Methods= | |Methods= | ||
− | {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}} | + | {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}} |
|Properties= | |Properties= | ||
{{CGscriptProperties_Template|ReturnType=bool|Name=<nowiki>Include</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Include users that match rule, or exclude</nowiki>}} | {{CGscriptProperties_Template|ReturnType=bool|Name=<nowiki>Include</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Include users that match rule, or exclude</nowiki>}} | ||
Line 13: | Line 13: | ||
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>QuestionnaireResourceId</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Questionnaire to get users from</nowiki>}} | {{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>QuestionnaireResourceId</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Questionnaire to get users from</nowiki>}} | ||
− | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}} | + | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}} |
}} | }} | ||
Latest revision as of 05:51, 2 July 2020
GroupBuilderTrackingStatusVariable
Represents a group builder variable for tracking status.
Parent class
Inherits from GroupBuilderVariable
Constructors
- () - Create new variable
Methods
- (From object) string ToString() - The string representation of the object.
Properties
- bool Include { get; set; } - Include users that match rule, or exclude
- bool IncludeStarted { get; set; } - Include those that are started in the result, even though tracking amount is zero
- int MaxTrackings { get; set; } - Respondents that have read or shared the email atmost x times
- int MinTrackings { get; set; } - Respondents that have read or shared the email atleast x times
- string ObjectTypeName { get; } - The name of the type of object.
- int QuestionnaireResourceId { get; set; } - Questionnaire to get users from
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.
Examples
GroupBuilderRoot root = new GroupBuilderRoot (15569488);
GroupBuilderTrackingStatusVariable trackingStatusVariable = new GroupBuilderTrackingStatusVariable();
trackingStatusVariable.QuestionnaireResourceId = 15569630;
trackingStatusVariable.MinTrackings =1;
trackingStatusVariable.MaxTrackings =1000;
trackingStatusVariable.IncludeStarted=true;
GroupBuilderRule rule = new GroupBuilderRule (root);
rule.Add(trackingStatusVariable);
GroupBuilderRuleCollection ruleColection = root.RootRules;
ruleColection.Add(rule);
root.Save();