C# Class wmib.Instance

Represent one instance of this bot
Afficher le fichier Open project: benapetr/wikimedia-bot Class Usage Examples

Méthodes publiques

Свойство Type Description
Hostname string
Instances Instance>.Dictionary
IsActive bool
Network Network
Nick string
Port int
PrimaryInstance Instance
Protocol WmIrcProtocol
TargetBuffer Instance>.Dictionary

Méthodes publiques

Méthode Description
Connect ( ) : void
ConnectAllIrcInstances ( ) : void
CreateInstance ( string name, int port ) : Instance

Creates a new instance

Disconnect ( ) : void
GetInstance ( ) : Instance

Return instance with lowest number of channels

Init ( ) : void

Create this instance

Instance ( string name, int port ) : System

Creates a new bot instance but not connect it to IRC

Join ( ) : void

Join all channels

Kill ( ) : void
QueueSize ( ) : int
ShutDown ( ) : void

Private Methods

Méthode Description
Exec ( ) : void
JoinAll ( ) : void

This is a private handler for channel joining, never call it directly, use Join() for that

Method Details

Connect() public méthode

public Connect ( ) : void
Résultat void

ConnectAllIrcInstances() public static méthode

public static ConnectAllIrcInstances ( ) : void
Résultat void

CreateInstance() public static méthode

Creates a new instance
public static CreateInstance ( string name, int port ) : Instance
name string
port int
Résultat Instance

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

GetInstance() public static méthode

Return instance with lowest number of channels
public static GetInstance ( ) : Instance
Résultat Instance

Init() public méthode

Create this instance
public Init ( ) : void
Résultat void

Instance() public méthode

Creates a new bot instance but not connect it to IRC
public Instance ( string name, int port ) : System
name string Name
port int Port
Résultat System

Join() public méthode

Join all channels
public Join ( ) : void
Résultat void

Kill() public static méthode

public static Kill ( ) : void
Résultat void

QueueSize() public méthode

public QueueSize ( ) : int
Résultat int

ShutDown() public méthode

public ShutDown ( ) : void
Résultat void

Property Details

Hostname public_oe property

Host for bouncer
public string Hostname
Résultat string

Instances public_oe static_oe property

List of instances
public static Dictionary Instances
Résultat Instance>.Dictionary

IsActive public_oe property

If you need to permanently disconnect this instance, change this to false
public bool IsActive
Résultat bool

Network public_oe property

public Network,wmib Network
Résultat Network

Nick public_oe property

Nickname of this instance
public string Nick
Résultat string

Port public_oe property

Port for bouncer
public int Port
Résultat int

PrimaryInstance public_oe static_oe property

public static Instance,wmib PrimaryInstance
Résultat Instance

Protocol public_oe property

public WmIrcProtocol,wmib Protocol
Résultat WmIrcProtocol

TargetBuffer public_oe static_oe property

Targets of each instance This is used to remember the last instance that user was talking to in a private message so that we respond to user using the same instance and not primary one
public static Dictionary TargetBuffer
Résultat Instance>.Dictionary