using System.Collections.Generic; namespace LaDOSE.DTO { public class MatchStatsDTO { public MatchCoverageDTO Coverage { get; set; } public List Players { get; set; } public List HeadToHead { get; set; } } public class MatchCoverageDTO { /// Requested event ids that actually exist. public int Events { get; set; } /// Tournaments (brackets) belonging to those events. public int Brackets { get; set; } /// Of those brackets, how many have at least one set row. public int BracketsWithSets { get; set; } /// Total set rows in scope, including unusable ones. public int Sets { get; set; } /// Sets with a determinable winner. public int DecidedSets { get; set; } } public class PlayerMatchStatsDTO { public int PlayerId { get; set; } /// Gamertag, falling back to Name, else "#<id>". public string Player { get; set; } /// Decided sets only. Always equals Wins + Losses. public int Sets { get; set; } public int Wins { get; set; } public int Losses { get; set; } public int GamesWon { get; set; } public int GamesLost { get; set; } } public class HeadToHeadDTO { public int PlayerAId { get; set; } public string PlayerA { get; set; } public int PlayerBId { get; set; } public string PlayerB { get; set; } public int WinsA { get; set; } public int WinsB { get; set; } } }