|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Contains client configuration data
Field Summary | |
---|---|
string | CHAT_URL |
string | chatUrl |
string | DOWNLOAD_DEFAULT_PATH |
string | downloadDefaultPath |
string | HOME_URL |
string | homeUrl |
bool | initialized |
Constructor Summary | |
---|---|
ClientConfig() Initializes a new instance of the ClientConfig class. |
Property Summary | |
---|---|
string |
ChatUrl
Chat Url |
string |
DownloadDefaultPath
Default path to use for downloads (relative). Resolve to absolute at runtime. Always has trailing slash. |
string |
HomeUrl
Home/help url |
int | MaxSearchResults |
bool | ModAvail |
Method Summary | |
---|---|
object | IConfigurationSectionHandler.Create(object parent, object configContext, System.Xml.XmlNode section) |
void | Initialize() |
string |
ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, string defaultValue) Reads string setting |
bool |
ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, bool defaultValue) Reads boolean setting |
int |
ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, int defaultValue) Reads int setting |
Naanou.Common.LogLevel |
ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, Naanou.Common.LogLevel defaultValue) Reads setting |
System.Uri |
ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, System.Uri defaultValue) Reads Uri setting |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
private string CHAT_URL
private string chatUrl
private string DOWNLOAD_DEFAULT_PATH
private string downloadDefaultPath
private string HOME_URL
private string homeUrl
private bool initialized
Constructor Detail |
---|
public ClientConfig()
Initializes a new instance of the ClientConfig class.
Property Detail |
---|
public string ChatUrl
Chat Url
public string DownloadDefaultPath
Default path to use for downloads (relative). Resolve to absolute at runtime. Always has trailing slash.
public string HomeUrl
Home/help url
public int MaxSearchResults
public bool ModAvail
Method Detail |
---|
private object IConfigurationSectionHandler.Create(object parent, object configContext, System.Xml.XmlNode section)
private void Initialize()
public string ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, string defaultValue)
Reads string setting
Parameters:
settings
- Settingskey
- KeydefaultValue
- Default valuepublic bool ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, bool defaultValue)
Reads boolean setting
Parameters:
settings
- Settingskey
- KeydefaultValue
- Default valuepublic int ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, int defaultValue)
Reads int setting
Parameters:
settings
- Settingskey
- KeydefaultValue
- Default valuepublic Naanou.Common.LogLevel ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, Naanou.Common.LogLevel defaultValue)
Reads setting
Parameters:
settings
- Settingskey
- KeydefaultValue
- Default valuepublic System.Uri ReadSetting(System.Collections.Specialized.NameValueCollection settings, string key, System.Uri defaultValue)
Reads Uri setting
Parameters:
settings
- Settingskey
- KeydefaultValue
- Default value
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |