Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
|
||||
namespace Application.DTOs.Champions.Response;
|
||||
|
||||
/// <summary>
|
||||
/// One row of the champions history for a finished division, with context to render a table across seasons.
|
||||
/// </summary>
|
||||
public class ChampionHistoryResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The id of the tournament the champion was crowned in.
|
||||
/// </summary>
|
||||
public required Guid TournamentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the tournament.
|
||||
/// </summary>
|
||||
public required string TournamentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The season name, or null when the tournament is not grouped under any season.
|
||||
/// </summary>
|
||||
public string? SeasonName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The season's calendar year, or null when there is no season or year set.
|
||||
/// </summary>
|
||||
public int? SeasonYear { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The competitive category of the division, Masculine or Feminine.
|
||||
/// </summary>
|
||||
public required string Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the division that was won.
|
||||
/// </summary>
|
||||
public required string DivisionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the sub-cup that was won, or null when the division crowns a single champion.
|
||||
/// </summary>
|
||||
public string? CupName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The team that won this cup, in first place.
|
||||
/// </summary>
|
||||
public required PodiumTeamResponse ChampionTeam { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
|
||||
namespace Application.DTOs.Champions.Response;
|
||||
|
||||
/// <summary>
|
||||
/// The final podium of a single competition; any place not yet decided is null rather than guessed.
|
||||
/// </summary>
|
||||
public class PodiumResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The id of the division this podium belongs to.
|
||||
/// </summary>
|
||||
public required Guid DivisionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the division this podium belongs to.
|
||||
/// </summary>
|
||||
public required string DivisionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// True when the division's champion is decided by a playoff Final rather than by group standings.
|
||||
/// </summary>
|
||||
public bool HasPlayoff { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The champion in first place, or null when not yet decided.
|
||||
/// </summary>
|
||||
public PodiumTeamResponse? First { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The runner-up in second place, or null when not yet decided.
|
||||
/// </summary>
|
||||
public PodiumTeamResponse? Second { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The team in third place, or null when not yet decided.
|
||||
/// </summary>
|
||||
public PodiumTeamResponse? Third { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Application.DTOs.Champions.Response;
|
||||
|
||||
/// <summary>
|
||||
/// A lightweight reference to a team occupying a podium place, carrying only what a team badge needs.
|
||||
/// </summary>
|
||||
public class PodiumTeamResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The unique identifier of the team.
|
||||
/// </summary>
|
||||
public required Guid TeamId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The display name of the team.
|
||||
/// </summary>
|
||||
public required string TeamName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL of the team's logo.
|
||||
/// </summary>
|
||||
public required string LogoUrl { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user