Ejemplo n.º 1
0
        internal IList <Player> FromTeamsPlayers(TeamsPlayersResponse result)
        {
            List <Player> ret = new List <Player>();

            foreach (var apiPlayer in result.Players)
            {
                var x = new Player();
                x.Name        = apiPlayer.Name;
                x.Nationality = apiPlayer.Nationality;
                ret.Add(x);
            }
            return(ret);
        }
Ejemplo n.º 2
0
 internal IList<Player> FromTeamsPlayers(TeamsPlayersResponse result)
 {
     List<Player> ret = new List<Player>();
     foreach(var apiPlayer in result.Players)
     {
         var x = new Player();
         x.Name = apiPlayer.Name;
         x.Nationality = apiPlayer.Nationality;
         ret.Add(x);
     }
     return ret;
 }