mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
71 lines
2.1 KiB
C#
71 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace RuriLib.Models.Stats
|
|
{
|
|
/// <summary>
|
|
/// A container for all statistics of an IProxyManager.
|
|
/// </summary>
|
|
public struct ProxyManagerStats
|
|
{
|
|
/// <summary>
|
|
/// The total amount of proxies in the pool.
|
|
/// </summary>
|
|
public int Total { get; }
|
|
|
|
/// <summary>
|
|
/// The amount of tested proxies.
|
|
/// </summary>
|
|
public int Tested { get; }
|
|
|
|
/// <summary>
|
|
/// The amount of working proxies.
|
|
/// </summary>
|
|
public int Working { get; }
|
|
|
|
/// <summary>
|
|
/// The amount of HTTP proxies in the pool.
|
|
/// </summary>
|
|
public int Http { get; }
|
|
|
|
/// <summary>
|
|
/// The amount of SOCKS4 proxies in the pool.
|
|
/// </summary>
|
|
public int Socks4 { get; }
|
|
|
|
/// <summary>
|
|
/// The amount of SOCKS4A proxies in the pool.
|
|
/// </summary>
|
|
public int Socks4a { get; }
|
|
|
|
/// <summary>
|
|
/// The amount of SOCKS5 proxies in the pool.
|
|
/// </summary>
|
|
public int Socks5 { get; }
|
|
|
|
/// <summary>
|
|
/// Reports data-related statistics.
|
|
/// </summary>
|
|
/// <param name="total">The total amount of proxies in the pool</param>
|
|
/// <param name="tested">The amount of tested proxies</param>
|
|
/// <param name="working">The amount of working proxies</param>
|
|
/// <param name="http">The amount of HTTP proxies in the pool</param>
|
|
/// <param name="socks4">The amount of SOCKS4 proxies in the pool</param>
|
|
/// <param name="socks4a">The amount of SOCKS4A proxies in the pool</param>
|
|
/// <param name="socks5">The amount of SOCKS5 proxies in the pool</param>
|
|
public ProxyManagerStats(int total, int tested, int working, int http, int socks4, int socks4a, int socks5)
|
|
{
|
|
Total = total;
|
|
Tested = tested;
|
|
Working = working;
|
|
Http = http;
|
|
Socks4 = socks4;
|
|
Socks4a = socks4a;
|
|
Socks5 = socks5;
|
|
}
|
|
}
|
|
}
|