Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
namespace Application.DTOs.Player.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Detailed response for an admin to view player information, extending PublicPlayerResponse with sensitive fields.
|
||||
/// </summary>
|
||||
public class AdminPlayerResponse : PublicPlayerResponse
|
||||
{
|
||||
public required string DocumentNumber { get; set; }
|
||||
|
||||
public required DateTime BirthDate { get; set; }
|
||||
|
||||
public required string PhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's health insurance provider or social work plan.
|
||||
/// </summary>
|
||||
public required string SocialSecurity { get; set; }
|
||||
|
||||
public required bool IsFederated { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The club the player is affiliated with; only meaningful when IsFederated is true.
|
||||
/// </summary>
|
||||
public required string Club { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's federation category; only meaningful when IsFederated is true.
|
||||
/// </summary>
|
||||
public required string Category { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Application.DTOs.Player.Response;
|
||||
|
||||
/// <summary>
|
||||
/// The outcome of registering a player onto a team's roster for a season.
|
||||
/// </summary>
|
||||
public class PlayerRegistrationResponse
|
||||
{
|
||||
public required Guid PlayerId { get; set; }
|
||||
public required Guid TeamId { get; set; }
|
||||
public required Guid TournamentId { get; set; }
|
||||
public int? JerseyNumber { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using Application.DTOs.Abstract.Response;
|
||||
|
||||
using Domain.Enums;
|
||||
|
||||
using System;
|
||||
namespace Application.DTOs.Player.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response for a Player, inheriting from the base response.
|
||||
/// </summary>
|
||||
public class PublicPlayerResponse : BaseEntityResponse
|
||||
{
|
||||
public required string FirstName { get; set; }
|
||||
|
||||
public required string SecondName { get; set; }
|
||||
|
||||
public required string LastName { get; set; }
|
||||
|
||||
public required string FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The unique, URL-friendly identifier used in public player links.
|
||||
/// </summary>
|
||||
public required string Slug { get; set; }
|
||||
|
||||
public required Guid TeamId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's medical-record status for this season roster; null when not loaded for a specific season.
|
||||
/// </summary>
|
||||
public MedicalRecordStatus? MedicalRecordStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the player's medical record is Approved for this season roster, letting the frontend flag it.
|
||||
/// </summary>
|
||||
public bool IsHabilitado { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's jersey number for this season roster; null when not loaded or not assigned.
|
||||
/// </summary>
|
||||
public int? JerseyNumber { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user