public MatchWCF convert()
        {
            MatchWCF m = new MatchWCF();

            m.Id        = this.Id;
            m.Jedi1     = Jedi1.convert();
            m.Jedi2     = Jedi2.convert();
            m.Stade     = Stade.convert();
            m.Phase     = (int)Phase;
            m.Vainqueur = (this.Winner == null) ? null : Winner.convert();

            return(m);
        }
Exemple #2
0
        /// <summary>
        /// Convert a MatchWCF into a Match
        /// </summary>
        /// <returns>The Match instance of the given MatchWCF</returns>
        public Match convert()
        {
            Jedi v = (Vainqueur == null) ? null : Vainqueur.convert();

            return(new Match(Id, Jedi1.convert(), Jedi2.convert(), (EPhaseTournoi)Phase, Stade.convert(), v));
        }