using System; using System.Collections.Generic; using System.Text; namespace FastReport.Messaging { /// /// Represents proxy settings of the messenger. /// public class ProxySettings { #region Fields private string server; private int port; private string username; private string password; private ProxyType proxyType; #endregion // Fields #region Properties /// /// 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; } } /// /// Gets or sets the type of proxy. /// public ProxyType ProxyType { get { return proxyType; } set { proxyType = value; } } #endregion // Properties #region Constructors /// /// Initializes a new instance of the class. /// /// The proxy server. /// The port number of server. /// The username. /// The user's password. /// The type of proxy. public ProxySettings(string server, int port, string username, string password, ProxyType proxyType) { this.server = server; this.port = port; this.username = username; this.password = password; this.proxyType = proxyType; } #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 } }