using System.ComponentModel.DataAnnotations; namespace ooya.ga_api; public class Game { /// /// Текущая дата и время /// [Required] public DateTime Date { get; set; } /// /// Идентификатор игры /// [Required] public string Guid { get; set; } /// /// Количество очков /// [Required] public int Score { get; set; } /// /// Ведьмы раунда /// [Required] public IEnumerable Witches { get; set; } /// /// Конструктор /// /// первоначальное количество очков public Game(int score = 0) { Date = DateTime.Now; Score = score; Witches = new List(); } }