Skip to content

Commit

Permalink
Добавлен показ игроков, которые ответили в финале
Browse files Browse the repository at this point in the history
  • Loading branch information
Fooxboy committed Nov 6, 2023
1 parent f30316b commit db98e7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MyOwnGame.Backend/Models/Dtos/SessionDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public class SessionDto
public PlayerDto? SelectQuestionPlayer { get; set; }

public SessionState State { get; set; }

public List<PlayerDto> FinalAnswers { get; set; }

public static SessionDto Create(Session session)
{
Expand All @@ -29,7 +31,8 @@ public static SessionDto Create(Session session)
SelectQuestionPlayer = PlayerDto.Create(session.SelectQuestionPlayer),
GameInfo = session.GameInfo,
State = session.State,
CreatedAt = session.CreatedAt
CreatedAt = session.CreatedAt,
FinalAnswers = session.FinalAnswers.Select(x=> PlayerDto.Create(x.Player)).ToList(),
};
}

Expand Down

0 comments on commit db98e7a

Please sign in to comment.