Class DataRule
Represents a rule that the data line must respect in order to be valid for a given Config.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.Models
Assembly: RuriLib.dll
Syntax
public class DataRule : ViewModelBase, INotifyPropertyChanged
Constructors
| Improve this Doc View SourceDataRule(Int32)
Creates a DataRule given an id.
Declaration
public DataRule(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The unique id of the rule |
Properties
| Improve this Doc View SourceId
The id of the rule.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RuleString
The characters to search in the sliced value. Defaults are Lowercase, Uppercase, Digit, Symbol. Custom character sets can be created by concatenating the characters in a single string (e.g. ABCDEF).
Declaration
public string RuleString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RuleType
The type of the rule.
Declaration
public RuleType RuleType { get; set; }
Property Value
Type | Description |
---|---|
RuleType |
SliceName
The name of the specific slice (defined in the WordlistType) this rule refers to.
Declaration
public string SliceName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StringInitialized
Whether the right-hand term has been initialized. Used in the View.
Declaration
[JsonIgnore]
public bool StringInitialized { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TypeInitialized
Whether the type has been initialized. Used in the View.
Declaration
[JsonIgnore]
public bool TypeInitialized { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Implements
System.ComponentModel.INotifyPropertyChanged