Beispiel #1
0
        public static MatchDto FromPickDto(PickDto pick)
        {
            var dto = new MatchDto();

            dto.Challenger.Name      = pick.Player;
            dto.Challenger.Type      = pick.PlayerType;
            dto.ChallengerMove.Text  = pick.Text;
            dto.ChallengerMove.Value = pick.Value;
            return(dto);
        }
Beispiel #2
0
        private MatchDto CreateMissing(string matchId)
        {
            var dto = new MatchDto();

            dto.Challenger.Name = "-";
            dto.Challenger.Type = "human";
            dto.PlayFabMatchId  = matchId;
            dto.PlayerName      = "-";
            dto.Result.Winner   = Enum.GetName(typeof(Result), Result.Challenger);
            dto.Result.Value    = (int)Result.Challenger;
            return(dto);
        }