C# Class wmib.Configuration

Configuration
Afficher le fichier Open project: benapetr/wikimedia-bot

Méthodes publiques

Свойство Type Description
Channels List

Méthodes publiques

Méthode Description
Load ( ) : int

Load config of bot

RetrieveConfig ( string key, int default_ ) : int
RetrieveConfig ( string key, string default_ = null ) : string
Save ( ) : void

Save a wm-bot channel list

TempName ( string file ) : string

Return a temporary name for a file

Private Methods

Méthode Description
File2Dict ( ) : string>.Dictionary

Method Details

Load() public static méthode

Load config of bot
public static Load ( ) : int
Résultat int

RetrieveConfig() public static méthode

public static RetrieveConfig ( string key, int default_ ) : int
key string
default_ int
Résultat int

RetrieveConfig() public static méthode

public static RetrieveConfig ( string key, string default_ = null ) : string
key string
default_ string
Résultat string

Save() public static méthode

Save a wm-bot channel list
public static Save ( ) : void
Résultat void

TempName() public static méthode

Return a temporary name for a file
public static TempName ( string file ) : string
file string File you need to have temporary name for
Résultat string

Property Details

Channels public_oe static_oe property

List of channels the bot is in, you should never need to use this, use ChannelList instead WARNING: this is thread unsafe, you always need to lock this object before you access it
public static List Channels
Résultat List