Scoreboard/ScoreboardApi/Objects/Team.cs
2025-01-08 09:39:14 +00:00

15 lines
404 B
C#

using System.Text.Json.Serialization;
namespace ScoreboardApi.Objects
{
public class Team
{
public string Abbreviation { get; set; }
public string Name { get; set; }
public int Points => EventHistory.Sum(x => x.Points);
public string Color { get; set; }
[JsonIgnore]
public List<Event> EventHistory { get; set; } = new();
}
}