Class BotData
Class that holds all the variables needed for checking a single data line.
Inheritance
Inherited Members
Namespace: RuriLib
Assembly: RuriLib.dll
Syntax
public class BotData
Constructors
| Improve this Doc View SourceBotData(RLSettingsViewModel, ConfigSettings, CData, CProxy, Boolean, Int32, Boolean)
Creates a BotData object given some parameters.
Declaration
public BotData(RLSettingsViewModel globalSettings, ConfigSettings configSettings, CData data, CProxy proxy, bool useProxies, int botNumber = 0, bool isDebug = true)
Parameters
| Type | Name | Description |
|---|---|---|
| RLSettingsViewModel | globalSettings | The global RuriLib settings |
| ConfigSettings | configSettings | The settings for the current Config |
| CData | data | The wrapped data line to check |
| CProxy | proxy | The proxy to use (set to null if none) |
| System.Boolean | useProxies | Whether to use the proxy for requests |
| System.Int32 | botNumber | The number of the bot that is creating this object |
| System.Boolean | isDebug | Whether this object is created from a Debugger or from a Runner |
Fields
| Improve this Doc View SourceCustomStatus
The Custom Status name in case the Status was set to Custom.
Declaration
public string CustomStatus
Field Value
| Type | Description |
|---|---|
| System.String |
rand
A random number generator that methods can refer to, in order to avoid the generation of the same random number if executed in rapid succession.
Declaration
public Random rand
Field Value
| Type | Description |
|---|---|
| System.Random |
Properties
| Improve this Doc View SourceAddress
The return Address of the HttpResponse.
Declaration
public string Address { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Balance
The remaining balance on the captcha service account.
Declaration
public double Balance { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
BotNumber
The id of the current Bot.
Declaration
public int BotNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
BrowserOpen
Whether the browser is open or not.
Declaration
public bool BrowserOpen { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CaptchaService
The captcha service currently being used.
Declaration
public CaptchaService CaptchaService { get; set; }
Property Value
| Type | Description |
|---|---|
| CaptchaService |
ConfigSettings
The settings for the current Config.
Declaration
public ConfigSettings ConfigSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| ConfigSettings |
Cookies
The dictionary of cookies of the HttpResponse.
Declaration
public Dictionary<string, string> Cookies { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
Data
The wrapped data line that needs to be checked.
Declaration
public CData Data { get; set; }
Property Value
| Type | Description |
|---|---|
| CData |
Driver
The selenium webdriver currently being used.
Declaration
public RemoteWebDriver Driver { get; set; }
Property Value
| Type | Description |
|---|---|
| OpenQA.Selenium.Remote.RemoteWebDriver |
GlobalCookies
The global cookies shared between all the Bots. They are set in the local cookie jar at the start of the check.
Declaration
public Dictionary<string, string> GlobalCookies { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
GlobalSettings
The Global RuriLib settings valid for any Config.
Declaration
public RLSettingsViewModel GlobalSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| RLSettingsViewModel |
GlobalVariables
The global variables shared between all the Bots. They can be accessed or set by any bot.
Declaration
public VariableList GlobalVariables { get; set; }
Property Value
| Type | Description |
|---|---|
| VariableList |
IsDebug
Whether this object is being used for a Debugger or for the Runner.
Declaration
public bool IsDebug { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
LogBuffer
The detailed log of the last block that was run.
Declaration
public List<LogEntry> LogBuffer { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<LogEntry> |
NETStream
The NET Stream used for TCP blocks with unencrypted connection.
Declaration
public NetworkStream NETStream { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Net.Sockets.NetworkStream |
Proxy
The proxy currently being used (null if none).
Declaration
public CProxy Proxy { get; set; }
Property Value
| Type | Description |
|---|---|
| CProxy |
ResponseCode
The HTTP code of the HttpResponse.
Declaration
public string ResponseCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ResponseHeaders
The dictionary of headers of the HttpResponse.
Declaration
public Dictionary<string, string> ResponseHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
ResponseSource
The source of the HttpResponse.
Declaration
public string ResponseSource { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Screenshots
The paths of the Screenshots saved by selenium.
Declaration
public List<string> Screenshots { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String> |
SSLStream
The SSL Stream used for TCP blocks with encrypted connection.
Declaration
public SslStream SSLStream { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Net.Security.SslStream |
Status
The Status of the Bot.
Declaration
public BotStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| BotStatus |
StatusString
The Status of the Bot as a string.
Declaration
public string StatusString { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TCPClient
The TCP Client used for TCP blocks.
Declaration
public TcpClient TCPClient { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Net.Sockets.TcpClient |
TCPSSL
Whether to use SSL for the current TCPClient.
Declaration
public bool TCPSSL { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
UseProxies
Whether we should use proxies or not.
Declaration
public bool UseProxies { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Variables
The local variables of the Bot.
Declaration
public VariableList Variables { get; set; }
Property Value
| Type | Description |
|---|---|
| VariableList |
Methods
| Improve this Doc View SourceLog(LogEntry)
Adds a new LogEntry to the LogBuffer.
Declaration
public void Log(LogEntry entry)
Parameters
| Type | Name | Description |
|---|---|---|
| LogEntry | entry | The LogEntry to add |
LogNewLine()
Logs an empty line to the LogBuffer.
Declaration
public void LogNewLine()
LogRange(List<LogEntry>)
Adds multiple new LogEntry objects to the LogBuffer.
Declaration
public void LogRange(List<LogEntry> list)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<LogEntry> | list | The list of log entries to add |