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); }
public static 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(ProtoResult), ProtoResult.Challenger); dto.Result.Value = (int)ProtoResult.Challenger; return(dto); }