2015-01-05 22:41:17 +08:00
|
|
|
|
using Wox.Plugin;
|
2014-07-18 20:00:55 +08:00
|
|
|
|
|
2015-01-05 22:41:17 +08:00
|
|
|
|
namespace Wox.Core.UserSettings
|
2014-07-18 20:00:55 +08:00
|
|
|
|
{
|
|
|
|
|
public class HttpProxy : IHttpProxy
|
|
|
|
|
{
|
|
|
|
|
private static readonly HttpProxy instance = new HttpProxy();
|
|
|
|
|
|
|
|
|
|
private HttpProxy()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static HttpProxy Instance
|
|
|
|
|
{
|
|
|
|
|
get { return instance; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Enabled
|
|
|
|
|
{
|
|
|
|
|
get { return UserSettingStorage.Instance.ProxyEnabled; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Server
|
|
|
|
|
{
|
|
|
|
|
get { return UserSettingStorage.Instance.ProxyServer; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Port
|
|
|
|
|
{
|
|
|
|
|
get { return UserSettingStorage.Instance.ProxyPort; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UserName
|
|
|
|
|
{
|
|
|
|
|
get { return UserSettingStorage.Instance.ProxyUserName; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Password
|
|
|
|
|
{
|
|
|
|
|
get { return UserSettingStorage.Instance.ProxyPassword; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|