using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
namespace FastReport.Cloud
{
///
/// Represents proxy settings of the cloud storage.
///
public class CloudProxySettings
{
#region Fields
private ProxyType proxyType;
private string server;
private int port;
private string username;
private string password;
#endregion // Fields
#region Properties
///
/// Gets or sets the type of proxy.
///
public ProxyType ProxyType
{
get { return proxyType; }
set { proxyType = value; }
}
///
/// Gets or sets the proxy server.
///
public string Server
{
get { return server; }
set { server = value; }
}
///
/// Gets or sets the port number of proxy server.
///
public int Port
{
get { return port; }
set { port = value; }
}
///
/// Gets or sets the username.
///
public string Username
{
get { return username; }
set { username = value; }
}
///
/// Gets or sets the user's password.
///
public string Password
{
get { return password; }
set { password = value; }
}
#endregion // Properties
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The type of proxy.
/// The proxy server.
/// The port number of server.
/// The username.
/// The user's password.
public CloudProxySettings(ProxyType proxyType, string server, int port, string username, string password)
{
this.proxyType = proxyType;
this.server = server;
this.port = port;
this.username = username;
this.password = password;
}
#endregion // Constructors
}
///
/// Represents the type of rpoxy.
///
public enum ProxyType
{
///
/// The HTTP proxy type.
///
Http,
///
/// The SOCKS4 proxy type.
///
Socks4,
///
/// The SOCKS5 proxy type.
///
Socks5
}
}