C# Класс wmib.Channel

Наследование: libirc.Target
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
RefetchChannel ( ) : void

Приватные методы

Метод Описание
InsertData ( string key, string value, XmlDocument &document, XmlNode &node, string Name = "local" ) : void

Описание методов

Channel() публичный Метод

Initializes a new instance of the wmib.Channel class.
public Channel ( string name ) : System
name string /// Name. ///
Результат System

ConfigExists() публичный статический Метод

Returns true if this channel is already existing in memory
public static ConfigExists ( string _Channel ) : bool
_Channel string
Результат bool

ContainsUser() публичный Метод

Return true if user is present in channel
public ContainsUser ( string name ) : bool
name string
Результат bool

Extension_GetConfig() публичный Метод

Retrieve a config
public Extension_GetConfig ( string key, string missing = null ) : string
key string
missing string
Результат string

Extension_SetConfig() публичный Метод

Change the config
public Extension_SetConfig ( string name, string data ) : void
name string
data string
Результат void

GetChannel() публичный Метод

public GetChannel ( ) : libirc.Channel
Результат libirc.Channel

GetConfigFilePath() публичный Метод

public GetConfigFilePath ( ) : string
Результат string

GetConfigFilePath() публичный статический Метод

public static GetConfigFilePath ( string _Channel ) : string
_Channel string
Результат string

InitializeShares() публичный Метод

Return number of channels that infobot share db with
public InitializeShares ( ) : int
Результат int

LoadConfig() публичный Метод

public LoadConfig ( ) : void
Результат void

RefetchChannel() защищенный Метод

protected RefetchChannel ( ) : void
Результат void

RegisterObject() публичный Метод

Register a new object in memory
public RegisterObject ( object Ob, string Nm ) : bool
Ob object Data
Nm string Name
Результат bool

Remove() публичный Метод

Remove all refs
public Remove ( ) : void
Результат void

RetrieveObject() публичный Метод

Get an object created by extension of name
public RetrieveObject ( string name ) : object
name string
Результат object

RetrieveUser() публичный Метод

public RetrieveUser ( string nick ) : libirc.User
nick string
Результат libirc.User

SaveConfig() публичный Метод

Save config
public SaveConfig ( ) : void
Результат void

UnregisterObject() публичный Метод

Remove object from memory
public UnregisterObject ( string Nm ) : bool
Nm string Name of object
Результат bool

Описание свойств

DefaultInstance публичное свойство

Default instance this channel belongs to
public string DefaultInstance
Результат string

ExtensionObjects публичное свойство

Objects created by extensions
public Dictionary ExtensionObjects
Результат object>.Dictionary

HasFreshUserList публичное свойство

Whether the channel contains a fresh user list (in case it doesn't bot will auto reparse it from ircd)
public bool HasFreshUserList
Результат bool

IgnoreUnknown публичное свойство

Whether unknown users should be ignored or not
public bool IgnoreUnknown
Результат bool

Infobot_IgnoredNames публичное свойство

List of ignored names for infobot
public List Infobot_IgnoredNames
Результат List

IrcChannel публичное свойство

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
Результат libirc.Channel

Language публичное свойство

Language used in this channel
public string Language
Результат string

Name публичное свойство

Channel name
public string Name
Результат string

Password публичное свойство

public string Password
Результат string

RespondMessage публичное свойство

Whether bot should respond to users who think that the bot is user and speak to him
public bool RespondMessage
Результат bool

RespondWait публичное свойство

Wait time between responses to users who try to speak to the bot
public int RespondWait
Результат int

SharedChans публичное свойство

List of channels that have shared infobot db
public List SharedChans
Результат List

SharedDB публичное свойство

Target db of shared infobot
public string SharedDB
Результат string

SharedLinkedChan публичное свойство

List of channels we share db with
public List SharedLinkedChan
Результат List

Suppress публичное свойство

If this is true, no messages are sent to this channel
public bool Suppress
Результат bool

SuppressWarnings публичное свойство

Doesn't send any warnings on error
public bool SuppressWarnings
Результат bool

SystemUsers публичное свойство

Users
public Security,wmib SystemUsers
Результат Security

TimeOfLastMsg публичное свойство

Time of last message received in channel
public DateTime,System TimeOfLastMsg
Результат System.DateTime