C# Class wmib.Channel

Inheritance: libirc.Target
Afficher le fichier Open project: benapetr/wikimedia-bot Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultInstance string
ExtensionObjects object>.Dictionary
HasFreshUserList bool
IgnoreUnknown bool
Infobot_IgnoredNames List
IrcChannel libirc.Channel
Language string
Name string
Password string
RespondMessage bool
RespondWait int
SharedChans List
SharedDB string
SharedLinkedChan List
Suppress bool
SuppressWarnings bool
SystemUsers Security
TimeOfLastMsg System.DateTime

Méthodes publiques

Méthode Description
Channel ( string name ) : System

Initializes a new instance of the wmib.Channel class.

ConfigExists ( string _Channel ) : bool

Returns true if this channel is already existing in memory

ContainsUser ( string name ) : bool

Return true if user is present in channel

Extension_GetConfig ( string key, string missing = null ) : string

Retrieve a config

Extension_SetConfig ( string name, string data ) : void

Change the config

GetChannel ( ) : libirc.Channel
GetConfigFilePath ( ) : string
GetConfigFilePath ( string _Channel ) : string
InitializeShares ( ) : int

Return number of channels that infobot share db with

LoadConfig ( ) : void
RegisterObject ( object Ob, string Nm ) : bool

Register a new object in memory

Remove ( ) : void

Remove all refs

RetrieveObject ( string name ) : object

Get an object created by extension of name

RetrieveUser ( string nick ) : libirc.User
SaveConfig ( ) : void

Save config

UnregisterObject ( string Nm ) : bool

Remove object from memory

Méthodes protégées

Méthode Description
RefetchChannel ( ) : void

Private Methods

Méthode Description
InsertData ( string key, string value, XmlDocument &document, XmlNode &node, string Name = "local" ) : void

Method Details

Channel() public méthode

Initializes a new instance of the wmib.Channel class.
public Channel ( string name ) : System
name string /// Name. ///
Résultat System

ConfigExists() public static méthode

Returns true if this channel is already existing in memory
public static ConfigExists ( string _Channel ) : bool
_Channel string
Résultat bool

ContainsUser() public méthode

Return true if user is present in channel
public ContainsUser ( string name ) : bool
name string
Résultat bool

Extension_GetConfig() public méthode

Retrieve a config
public Extension_GetConfig ( string key, string missing = null ) : string
key string
missing string
Résultat string

Extension_SetConfig() public méthode

Change the config
public Extension_SetConfig ( string name, string data ) : void
name string
data string
Résultat void

GetChannel() public méthode

public GetChannel ( ) : libirc.Channel
Résultat libirc.Channel

GetConfigFilePath() public méthode

public GetConfigFilePath ( ) : string
Résultat string

GetConfigFilePath() public static méthode

public static GetConfigFilePath ( string _Channel ) : string
_Channel string
Résultat string

InitializeShares() public méthode

Return number of channels that infobot share db with
public InitializeShares ( ) : int
Résultat int

LoadConfig() public méthode

public LoadConfig ( ) : void
Résultat void

RefetchChannel() protected méthode

protected RefetchChannel ( ) : void
Résultat void

RegisterObject() public méthode

Register a new object in memory
public RegisterObject ( object Ob, string Nm ) : bool
Ob object Data
Nm string Name
Résultat bool

Remove() public méthode

Remove all refs
public Remove ( ) : void
Résultat void

RetrieveObject() public méthode

Get an object created by extension of name
public RetrieveObject ( string name ) : object
name string
Résultat object

RetrieveUser() public méthode

public RetrieveUser ( string nick ) : libirc.User
nick string
Résultat libirc.User

SaveConfig() public méthode

Save config
public SaveConfig ( ) : void
Résultat void

UnregisterObject() public méthode

Remove object from memory
public UnregisterObject ( string Nm ) : bool
Nm string Name of object
Résultat bool

Property Details

DefaultInstance public_oe property

Default instance this channel belongs to
public string DefaultInstance
Résultat string

ExtensionObjects public_oe property

Objects created by extensions
public Dictionary ExtensionObjects
Résultat object>.Dictionary

HasFreshUserList public_oe property

Whether the channel contains a fresh user list (in case it doesn't bot will auto reparse it from ircd)
public bool HasFreshUserList
Résultat bool

IgnoreUnknown public_oe property

Whether unknown users should be ignored or not
public bool IgnoreUnknown
Résultat bool

Infobot_IgnoredNames public_oe property

List of ignored names for infobot
public List Infobot_IgnoredNames
Résultat List

IrcChannel public_oe property

The irc channel as maintained by IRC library, this is the linked irc channel that is handled by the instance which is servicing that
public libirc.Channel IrcChannel
Résultat libirc.Channel

Language public_oe property

Language used in this channel
public string Language
Résultat string

Name public_oe property

Channel name
public string Name
Résultat string

Password public_oe property

public string Password
Résultat string

RespondMessage public_oe property

Whether bot should respond to users who think that the bot is user and speak to him
public bool RespondMessage
Résultat bool

RespondWait public_oe property

Wait time between responses to users who try to speak to the bot
public int RespondWait
Résultat int

SharedChans public_oe property

List of channels that have shared infobot db
public List SharedChans
Résultat List

SharedDB public_oe property

Target db of shared infobot
public string SharedDB
Résultat string

SharedLinkedChan public_oe property

List of channels we share db with
public List SharedLinkedChan
Résultat List

Suppress public_oe property

If this is true, no messages are sent to this channel
public bool Suppress
Résultat bool

SuppressWarnings public_oe property

Doesn't send any warnings on error
public bool SuppressWarnings
Résultat bool

SystemUsers public_oe property

Users
public Security,wmib SystemUsers
Résultat Security

TimeOfLastMsg public_oe property

Time of last message received in channel
public DateTime,System TimeOfLastMsg
Résultat System.DateTime