Show / Hide Table of Contents

Class CData

Represents a data line that needs to be checked.

Inheritance
System.Object
CData
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 CData

Constructors

| Improve this Doc View Source

CData(String, WordlistType)

Creates a CData object given a data line and the WordlistType.

Declaration
public CData(string data, WordlistType type)
Parameters
Type Name Description
System.String data

The data line

WordlistType type

The WordlistType of the Wordlist the data line belongs to

Properties

| Improve this Doc View Source

Data

The actual content of the line.

Declaration
public string Data { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsValid

Whether the data line respects the regex verification.

Declaration
public bool IsValid { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Type

The WordlistType of the Wordlist the line belongs to.

Declaration
public WordlistType Type { get; set; }
Property Value
Type Description
WordlistType

Methods

| Improve this Doc View Source

GetVariables()

Gets all the variables that need to be set after slicing the data line.

Declaration
public List<CVar> GetVariables()
Returns
Type Description
System.Collections.Generic.List<CVar>

The variables that need to be set inside the Bot's VariableList

| Improve this Doc View Source

RespectsRules(List<DataRule>)

Checks if the data line respects all the data rules present in a Config.

Declaration
public bool RespectsRules(List<DataRule> rules)
Parameters
Type Name Description
System.Collections.Generic.List<DataRule> rules

The list of rules of the Config

Returns
Type Description
System.Boolean

Whether the data line respects the rules

  • Improve this Doc
  • View Source
Back to top Generated by DocFX