Skip to content

Commit d8fb793

Browse files
Merge pull request #175 from CodebreakerApp/174-gamesummaryclass
Change GameSummary to class
2 parents efbaa73 + d5f111b commit d8fb793

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed
Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
namespace Codebreaker.GameAPIs.Models;
22

3-
public record class GameSummary(
4-
Guid Id,
5-
string GameType,
6-
string PlayerName,
7-
bool IsCompleted,
8-
bool IsVictory,
9-
int NumberMoves,
10-
DateTime StartTime,
11-
TimeSpan Duration)
3+
public class GameSummary(
4+
Guid id,
5+
string gameType,
6+
string playerName,
7+
bool isCompleted,
8+
bool isVictory,
9+
int numberMoves,
10+
DateTime startTime,
11+
TimeSpan duration)
1212
{
13+
public Guid Id { get; private set; } = id;
14+
public string GameType { get; private set; } = gameType;
15+
public string PlayerName { get; private set; } = playerName;
16+
public bool IsCompleted { get; private set; } = isCompleted;
17+
public bool IsVictory { get; private set; } = isVictory;
18+
public int NumberMoves { get; private set; } = numberMoves;
19+
public DateTime StartTime { get; private set; } = startTime;
20+
public TimeSpan Duration { get; private set; } = duration;
1321
public override string ToString() => $"{Id}:{GameType}, victory: {IsVictory}, duration: {Duration}";
1422
}
File renamed without changes.

0 commit comments

Comments
 (0)