|
|
@ -9,12 +9,10 @@ namespace Trek12_API.DTO
|
|
|
|
public TimeSpan Duration { get; set; }
|
|
|
|
public TimeSpan Duration { get; set; }
|
|
|
|
public DateOnly Date { get; set; }
|
|
|
|
public DateOnly Date { get; set; }
|
|
|
|
public List<TurnDTO> Turns { get; set; }
|
|
|
|
public List<TurnDTO> Turns { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Dictionary<PlayerDTO, GrilleDTO> Grilles { get; set; }
|
|
|
|
public Dictionary<PlayerDTO, GrilleDTO> Grilles { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Dictionary<PlayerDTO, int> Scores { get; set; }
|
|
|
|
public Dictionary<PlayerDTO, int> Scores { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public GamemodeDTO GameMode { get; set; }
|
|
|
|
public GamemodeDTO GameMode { get; set; }
|
|
|
|
|
|
|
|
public PlayerDTO Player { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public GameDTO(int id, DateOnly date, PlayerDTO owner, GamemodeDTO gameMode)
|
|
|
|
public GameDTO(int id, DateOnly date, PlayerDTO owner, GamemodeDTO gameMode)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -26,6 +24,7 @@ namespace Trek12_API.DTO
|
|
|
|
Scores.Add(owner, 0);
|
|
|
|
Scores.Add(owner, 0);
|
|
|
|
GameMode = gameMode;
|
|
|
|
GameMode = gameMode;
|
|
|
|
Id = id;
|
|
|
|
Id = id;
|
|
|
|
|
|
|
|
Player = owner;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|