C# Class Helpmebot.Legacy.Configuration.LegacyConfig

Handles all configuration settings of the bot
Show file Open project: helpmebot/helpmebot Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
LegacyConfig ( ) : System

Initialises a new instance of the LegacyConfig class.

Private Methods

Method 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 method

The clear cache.
public ClearCache ( ) : void
return void

GetChannelId() public method

The get channel id.
public GetChannelId ( string channel ) : string
channel string /// The channel. ///
return string

LegacyConfig() protected method

Initialises a new instance of the LegacyConfig class.
protected LegacyConfig ( ) : System
return System

Singleton() public static method

Singletons this instance.
public static Singleton ( ) : LegacyConfig
return LegacyConfig

this() public method

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

this() public method

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. ///
return string