mirror of
				https://github.com/lantean-code/qbtmud.git
				synced 2025-11-04 05:53:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Text.Json.Serialization;
 | 
						|
 | 
						|
namespace Lantean.QBitTorrentClient.Models
 | 
						|
{
 | 
						|
    public record TorrentTracker
 | 
						|
    {
 | 
						|
        [JsonConstructor]
 | 
						|
        public TorrentTracker(
 | 
						|
            string url,
 | 
						|
            TrackerStatus status,
 | 
						|
            int tier,
 | 
						|
            int peers,
 | 
						|
            int seeds,
 | 
						|
            int leeches,
 | 
						|
            int downloads,
 | 
						|
            string message)
 | 
						|
        {
 | 
						|
            Url = url;
 | 
						|
            Status = status;
 | 
						|
            Tier = tier;
 | 
						|
            Peers = peers;
 | 
						|
            Seeds = seeds;
 | 
						|
            Leeches = leeches;
 | 
						|
            Downloads = downloads;
 | 
						|
            Message = message;
 | 
						|
        }
 | 
						|
 | 
						|
        [JsonPropertyName("url")]
 | 
						|
        public string Url { get; }
 | 
						|
 | 
						|
        [JsonPropertyName("status")]
 | 
						|
        public TrackerStatus Status { get; }
 | 
						|
 | 
						|
        [JsonPropertyName("tier")]
 | 
						|
        public int Tier { get; }
 | 
						|
 | 
						|
        [JsonPropertyName("num_peers")]
 | 
						|
        public int Peers { get; }
 | 
						|
 | 
						|
        [JsonPropertyName("num_seeds")]
 | 
						|
        public int Seeds { get; }
 | 
						|
 | 
						|
        [JsonPropertyName("num_leeches")]
 | 
						|
        public int Leeches { get; }
 | 
						|
 | 
						|
        [JsonPropertyName("num_downloaded")]
 | 
						|
        public int Downloads { get; }
 | 
						|
 | 
						|
        [JsonPropertyName("msg")]
 | 
						|
        public string Message { get; }
 | 
						|
    }
 | 
						|
} |