GroupRule class
From Catglobe Wiki
More actions
GroupRule
Represents a group builder rule (the targeting rule attached to a group).
Parent class
Inherits from Array
Methods
- Empty Save() - Save this group rule to the database
- Empty SetPercentTarget(int Target percentage "Percentage target (-1 for unlimited)") - Set a percentage target for this rule and save
- Empty SetTarget(int Target "New target value (-1 for unlimited)") - Set a new absolute target for this rule and save
- Empty SetTargetUnlimited() - Set this rule's target to unlimited and save
- string ToString() - The string representation of the object.
- object this[] { get; }(int index "Index") - Backward-compatible indexer
- Empty this[] { get; }(int index "Index", object value "Value to set") - Backward-compatible indexer
Properties
- number Average { get; } - Average of the objects in the Array object. Can only use if all the elements are of type Number
- int Id { get; } - Primary-key id of the rule
- bool IncludeDeleted { get; set; } - Whether deleted users are eligible
- bool IncludeDisabled { get; set; } - Whether disabled users are eligible
- number Max { get; } - Largest of all the objects in the Array object. Can only use if all the elements are of type Number
- number Min { get; } - Smallest of all the objects in the Array object. Can only use if all the elements are of type Number
- string Name { get; set; } - Display name of the rule
- string ObjectTypeName { get; } - The name of the type of object.
- number Sum { get; } - Sum of all the objects in the Array object. Can only use if all the elements are of type Number
- int Target { get; set; } - Absolute target user count (-1 = unlimited)
- number TargetPercentage { get; set; } - Target as a percentage of the parent rule (-1 = unlimited / not set)
- TypeInformation TypeInformation { get; } - Get information about this class.
- int UserCount { get; } - Actual number of users produced by this rule after the last rebuild