private MatchInProgress CopyToMatchInProgress(Match match)
        {
            var mip = new MatchInProgress
            {
                Id              = match.Id,
                State           = (MatchState)match.State,
                Team1           = match.Team1,
                Team2           = match.Team2,
                Goal1           = match.Score1 < 0 ? "" : match.Score1.ToString(),
                Goal2           = match.Score2 < 0 ? "" : match.Score2.ToString(),
                Period          = match.Period <= 0 ? "" : match.Period.ToString(),
                TimeoutSummary1 = match.Timeouts1,
                TimeoutSummary2 = match.Timeouts2
            };

            return(mip);
        }
Esempio n. 2
0
 public MatchViewModel()
 {
     Current = new MatchInProgress();
     Actions = new MatchAllowedActions();
 }