C# Class Helpmebot.Legacy.Configuration.LegacyConfig

Handles all configuration settings of the bot
Afficher le fichier Open project: helpmebot/helpmebot Class Usage Examples

Méthodes publiques

Méthode Description
ClearCache ( ) : void

The clear cache.

GetChannelId ( string channel ) : string

The get channel id.

Singleton ( ) : LegacyConfig

Singletons this instance.

this ( string globalOption ) : string

Gets or sets the System.String with the specified global option.

this ( string localOption, string locality ) : string

Gets or sets the System.String with the specified local option.

Méthodes protégées

Méthode Description
LegacyConfig ( ) : System

Initialises a new instance of the LegacyConfig class.

Private Methods

Méthode Description
GetGlobalSetting ( string optionName ) : string

The get global setting.

GetOptionId ( string optionName ) : string

The get option id.

RetrieveOptionFromDatabase ( string optionName ) : string

The retrieve option from database.

SetGlobalOption ( string newValue, string optionName ) : void

The set global option.

SetLocalOption ( string channel, string optionName, string newValue ) : void

The set local option.

Method Details

ClearCache() public méthode

The clear cache.
public ClearCache ( ) : void
Résultat void

GetChannelId() public méthode

The get channel id.
public GetChannelId ( string channel ) : string
channel string /// The channel. ///
Résultat string

LegacyConfig() protected méthode

Initialises a new instance of the LegacyConfig class.
protected LegacyConfig ( ) : System
Résultat System

Singleton() public static méthode

Singletons this instance.
public static Singleton ( ) : LegacyConfig
Résultat LegacyConfig

this() public méthode

Gets or sets the System.String with the specified global option.
public this ( string globalOption ) : string
globalOption string /// The global Option. ///
Résultat string

this() public méthode

Gets or sets the System.String with the specified local option.
public this ( string localOption, string locality ) : string
localOption string /// The local Option. ///
locality string /// The locality. ///
Résultat string