All pastes #2081614 Raw Edit

Unnamed

public text v1 · immutable
#2081614 ·published 2011-09-20 18:17 UTC
rendered paste body
        /// <summary>
        /// Represents the torrent information (download link, seeds, peers, number of files) of an episode.
        /// </summary>
        public class TorrentInfo
        {
            /// <summary>
            /// Gets or sets the name of the torrent.
            /// </summary>
            /// <value>
            /// The name of the torrent.
            /// </value>
            [JsonProperty("name")]
            public static string Name { get; set; }

            /// <summary>
            /// Gets or sets the quality of the torrent.
            /// </summary>
            /// <value>
            /// The quality of the torrent.
            /// </value>
            [JsonProperty("quality")]
            public static string Quality { get; set; }

            /// <summary>
            /// Gets or sets the age of the torrent.
            /// </summary>
            /// <value>
            /// The age of the torrent.
            /// </value>
            [JsonProperty("age")]
            public static int Age { get; set; }

            /// <summary>
            /// Gets or sets the size of the torrent.
            /// </summary>
            /// <value>
            /// The size of the torrent.
            /// </value>
            [JsonProperty("data_size")]
            public static int Size { get; set; }

            /// <summary>
            /// Gets or sets the seeders count for the torrent.
            /// </summary>
            /// <value>
            /// The seeders count for the torrent.
            /// </value>
            [JsonProperty("seeds")]
            public static int Seed { get; set; }

            /// <summary>
            /// Gets or sets the leechers count for the torrent.
            /// </summary>
            /// <value>
            /// The leechers count for the torrent.
            /// </value>
            [JsonProperty("leechers")]
            public static int Leech { get; set; }

            /// <summary>
            /// Gets or sets the URL to the torrent file.
            /// </summary>
            /// <value>
            /// The URL to the torrent file.
            /// </value>
            [JsonProperty("link")]
            public static string Link { get; set; }
        }