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