Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Application.DTOs.MatchSeries.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Payload for scheduling the next game of an existing series; GameNumber and teams are derived server-side.
|
||||
/// </summary>
|
||||
public class AddGameToSeriesRequest
|
||||
{
|
||||
[Required(ErrorMessage = "Match date field is required.")]
|
||||
public required DateTime MatchDate { get; set; }
|
||||
|
||||
public Guid? VenueId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Application.DTOs.MatchSeries.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Payload for creating a new best-of-N playoff series between two teams at one bracket round.
|
||||
/// </summary>
|
||||
public class CreateMatchSeriesRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// The stage this series belongs to; its BestOf value is copied onto the series at creation time.
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "Stage ID field is required.")]
|
||||
public required Guid StageId { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Home team ID field is required.")]
|
||||
public required Guid HomeTeamId { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Visitor team ID field is required.")]
|
||||
public required Guid VisitorTeamId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Application.DTOs.Abstract.Request;
|
||||
|
||||
using System;
|
||||
|
||||
namespace Application.DTOs.MatchSeries.Request;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request to filter and paginate playoff series.
|
||||
/// </summary>
|
||||
public class GetMatchSeriesFilteredRequest : PaginatedFilterRequest
|
||||
{
|
||||
public Guid? StageId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user