Show / Hide Table of Contents

Class BotData

Class that holds all the variables needed for checking a single data line.

Inheritance
System.Object
BotData
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
Assembly: RuriLib.dll
Syntax
public class BotData

Constructors

| Improve this Doc View Source

BotData(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 Source

CustomStatus

The Custom Status name in case the Status was set to Custom.

Declaration
public string CustomStatus
Field Value
Type Description
System.String
| Improve this Doc View Source

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 Source

Address

The return Address of the HttpResponse.

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

Balance

The remaining balance on the captcha service account.

Declaration
public double Balance { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

BotNumber

The id of the current Bot.

Declaration
public int BotNumber { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

BrowserOpen

Whether the browser is open or not.

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

CaptchaService

The captcha service currently being used.

Declaration
public CaptchaService CaptchaService { get; set; }
Property Value
Type Description
CaptchaService
| Improve this Doc View Source

ConfigSettings

The settings for the current Config.

Declaration
public ConfigSettings ConfigSettings { get; set; }
Property Value
Type Description
ConfigSettings
| Improve this Doc View Source

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>
| Improve this Doc View Source

Data

The wrapped data line that needs to be checked.

Declaration
public CData Data { get; set; }
Property Value
Type Description
CData
| Improve this Doc View Source

Driver

The selenium webdriver currently being used.

Declaration
public RemoteWebDriver Driver { get; set; }
Property Value
Type Description
OpenQA.Selenium.Remote.RemoteWebDriver
| Improve this Doc View Source

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>
| Improve this Doc View Source

GlobalSettings

The Global RuriLib settings valid for any Config.

Declaration
public RLSettingsViewModel GlobalSettings { get; set; }
Property Value
Type Description
RLSettingsViewModel
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

Proxy

The proxy currently being used (null if none).

Declaration
public CProxy Proxy { get; set; }
Property Value
Type Description
CProxy
| Improve this Doc View Source

ResponseCode

The HTTP code of the HttpResponse.

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

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>
| Improve this Doc View Source

ResponseSource

The source of the HttpResponse.

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

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>
| Improve this Doc View Source

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
| Improve this Doc View Source

Status

The Status of the Bot.

Declaration
public BotStatus Status { get; set; }
Property Value
Type Description
BotStatus
| Improve this Doc View Source

StatusString

The Status of the Bot as a string.

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

TCPClient

The TCP Client used for TCP blocks.

Declaration
public TcpClient TCPClient { get; set; }
Property Value
Type Description
System.Net.Sockets.TcpClient
| Improve this Doc View Source

TCPSSL

Whether to use SSL for the current TCPClient.

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

UseProxies

Whether we should use proxies or not.

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

Variables

The local variables of the Bot.

Declaration
public VariableList Variables { get; set; }
Property Value
Type Description
VariableList

Methods

| Improve this Doc View Source

Log(LogEntry)

Adds a new LogEntry to the LogBuffer.

Declaration
public void Log(LogEntry entry)
Parameters
Type Name Description
LogEntry entry

The LogEntry to add

| Improve this Doc View Source

LogNewLine()

Logs an empty line to the LogBuffer.

Declaration
public void LogNewLine()
| Improve this Doc View Source

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

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