using System.ComponentModel.DataAnnotations; namespace ooya.ga_api; public class Witch { /// /// Идентификатор ведьмы /// [Required] public string Guid { get; set; } /// /// Является ли настоящей /// [Required] public bool FlagReal { get; set; } /// /// Позиция ведьмы /// [Required] public int Position { get; set; } /// /// Конструктор /// /// public Witch(int position) { Guid = (new Guid()).ToString("N"); Position = position; FlagReal = false; } }