Reflect proper functionality of FarmPokestops

FeroxRev [2016-07-19 19:42:40]
Reflect proper functionality of FarmPokestops
Filename
PokemonGo/RocketAPI/Console/Program.cs
diff --git a/PokemonGo/RocketAPI/Console/Program.cs b/PokemonGo/RocketAPI/Console/Program.cs
index ba8bbe1..e35daaa 100644
--- a/PokemonGo/RocketAPI/Console/Program.cs
+++ b/PokemonGo/RocketAPI/Console/Program.cs
@@ -31,11 +31,16 @@ namespace PokemonGo.RocketAPI.Console
             var settings = await client.GetSettings();
             var mapObjects = await client.GetMapObjects();
             var inventory = await client.GetInventory();
-            await ExecuteFarmingPokestops(client);
+            var pokemons = inventory.Payload[0].Bag.Items.Select(i => i.Item?.Pokemon).Where(p => p != null && p?.PokemonId != InventoryResponse.Types.PokemonProto.Types.PokemonIds.PokemonUnset);
+
+
+            await ExecuteFarmingPokestopsAndPokemons(client);
             //await ExecuteCatchAllNearbyPokemons(client);
+
+
         }

-        private static async Task ExecuteFarmingPokestops(Client client)
+        private static async Task ExecuteFarmingPokestopsAndPokemons(Client client)
         {
             var mapObjects = await client.GetMapObjects();

@@ -58,7 +63,6 @@ namespace PokemonGo.RocketAPI.Console

         private static async Task ExecuteCatchAllNearbyPokemons(Client client)
         {
-
             var mapObjects = await client.GetMapObjects();

             var pokemons = mapObjects.Payload[0].Profile.SelectMany(i => i.MapPokemon);
You may download the files in Public Git.