Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Application.DTOs.Abstract.Response;
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Application.DTOs.Season.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Season details, including the lightweight list of tournaments grouped under it.
|
||||
/// </summary>
|
||||
public class SeasonResponse : BaseEntityResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The display name of the season.
|
||||
/// </summary>
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The unique, URL-friendly identifier used in public season links.
|
||||
/// </summary>
|
||||
public required string Slug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The calendar year the season is played in; optional.
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The tournaments grouped under this season.
|
||||
/// </summary>
|
||||
public IEnumerable<SeasonTournamentResponse> Tournaments { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Application.DTOs.Abstract.Response;
|
||||
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Application.DTOs.Season.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Lightweight view of a tournament inside a SeasonResponse, without its full division graph.
|
||||
/// </summary>
|
||||
public class SeasonTournamentResponse : BaseEntityResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the tournament.
|
||||
/// </summary>
|
||||
public required string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The unique, URL-friendly identifier used in public tournament links.
|
||||
/// </summary>
|
||||
public required string Slug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Competitive category of the tournament, kept per tournament even when grouped under a season.
|
||||
/// </summary>
|
||||
public TournamentCategory Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The tournament's lifecycle status, matching every other tournament list view's status chip.
|
||||
/// </summary>
|
||||
public TournamentStatus Status { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user