Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace Application.DTOs.Scorer.Response;
|
||||
|
||||
public class ScorerBaseResponse
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Total points scored, aggregated over the grouping this response represents, not just one match.
|
||||
/// </summary>
|
||||
public required int Points { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
namespace Application.DTOs.Scorer.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Response model representing a scorer's performance in a match.
|
||||
/// </summary>
|
||||
public class ScorerByPlayerResponse : ScorerBaseResponse
|
||||
{
|
||||
public required Guid PlayerId { get; set; }
|
||||
|
||||
public required string FullName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's jersey number for rendering the kit on the scoreboard, null when there is no roster number.
|
||||
/// </summary>
|
||||
public int? JerseyNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's current team.
|
||||
/// </summary>
|
||||
public Guid TeamId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's current team's name.
|
||||
/// </summary>
|
||||
public string TeamName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The player's current team's crest, for the ranking row.
|
||||
/// </summary>
|
||||
public string TeamLogoUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The player's current team's primary shirt color, for rendering the kit alongside the dorsal.
|
||||
/// </summary>
|
||||
public string TeamShirtColor { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The player's current team's kit pattern; see Team.JerseyStyle.
|
||||
/// </summary>
|
||||
public string TeamJerseyStyle { get; set; } = "solid";
|
||||
|
||||
/// <summary>
|
||||
/// The player's current team's secondary shirt color, when set.
|
||||
/// </summary>
|
||||
public string? TeamShirtSecondaryColor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The player's current team's tertiary shirt color, when set.
|
||||
/// </summary>
|
||||
public string? TeamShirtTertiaryColor { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
namespace Application.DTOs.Scorer.Response;
|
||||
|
||||
/// <summary>
|
||||
/// Response model representing a scorer's performance in a match.
|
||||
/// </summary>
|
||||
public class ScorerByTeamResponse : ScorerBaseResponse
|
||||
{
|
||||
public required Guid TeamId { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user