private SICore.GameInfo ToSICoreGame(Contract.GameInfo gameInfo) => new SICore.GameInfo { GameID = gameInfo.GameID, GameName = gameInfo.GameName, Mode = gameInfo.Mode, Owner = gameInfo.Owner, PackageName = gameInfo.PackageName, PasswordRequired = gameInfo.PasswordRequired, Persons = gameInfo.Persons, RealStartTime = gameInfo.RealStartTime == DateTime.MinValue ? DateTime.MinValue : gameInfo.RealStartTime.ToLocalTime(), Rules = BuildRules(gameInfo), Stage = BuildStage(gameInfo), Started = gameInfo.Started, StartTime = gameInfo.StartTime.ToLocalTime() };
private static string BuildStage(Contract.GameInfo gameInfo) => gameInfo.Stage switch {