Exemplo n.º 1
0
        private SniperInfo Map(PokeSpawnsPokemon result)
        {
            var sniperInfo = new SniperInfo();
            var pokemonId  = PokemonParser.ParsePokemon(result.name);

            if (!_pokemonIdsToFind.Contains(pokemonId))
            {
                return(null);
            }
            sniperInfo.Id        = pokemonId;
            sniperInfo.Latitude  = result.lat;
            sniperInfo.Longitude = result.lon;
            return(sniperInfo);
        }
 private static SniperInfo Map(PokeSpawnsPokemon result)
 {
     var sniperInfo = new SniperInfo();
     var pokemonId = PokemonParser.ParsePokemon(result.name);
     sniperInfo.Id = pokemonId;
     sniperInfo.Latitude = result.lat;
     sniperInfo.Longitude = result.lon;
     return sniperInfo;
 }