/// <summary> /// Instanciation du match /// </summary> /// <param name="match">Un match du web service</param> /// <remarks> /// Les jedis sont null si c'est une phase non encore jouee /// </remarks> public MatchViewModel(ServiceReference.MatchWS match) { this.Id = Id; this.Jedi1 = ((match.Jedi1 != null) ? new JediViewModel(match.Jedi1) : null); this.Jedi2 = ((match.Jedi2 != null) ? new JediViewModel(match.Jedi2) : null); this.JediVainqueur = ((match.JediVainqueur != null) ? new JediViewModel(match.JediVainqueur) : null); this.Stade = new StadeViewModel(match.Stade); this.Phase = match.Phase; }
/// <summary> /// Instanciation du match /// </summary> /// <param name="match">Un match du web service</param> /// <remarks> /// Les jedis sont null si c'est une phase non encore jouee /// </remarks> public MatchViewModel(ServiceReference.MatchWS match) { this.Id = Id; this.Jedi1 = ((match.Jedi1 != null) ? new JediViewModel(match.Jedi1) : null); this.Jedi2 = ((match.Jedi2 != null) ? new JediViewModel(match.Jedi2) : null); this.JediVainqueur = ((match.JediVainqueur != null) ? new JediViewModel(match.JediVainqueur) : null); this.Stade = new StadeViewModel(match.Stade); this.Phase = match.Phase; }