File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
src/services/gameapi/Codebreaker.GameAPIs.Models Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 1
1
namespace Codebreaker . GameAPIs . Models ;
2
2
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 )
12
12
{
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 ;
13
21
public override string ToString ( ) => $ "{ Id } :{ GameType } , victory: { IsVictory } , duration: { Duration } ";
14
22
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments