public void HandleNearbyPokemon(NearbyPokemon nearbyPokemon)
        {
            string encounterId = nearbyPokemon.EncounterId.ToString();

            if (!nearbyEncounters.Contains(encounterId) && !spawnedEncounters.Contains(encounterId))
            {
                nearbyEncounters.Add(encounterId);

                var message = new NearbyPokemonMessage(nearbyPokemon, pogoInstance.Configuration);
                message.Send();
            }
        }
        public void HandleNearbyPokemon(NearbyPokemon nearbyPokemon)
        {
            if (!nearbyEncounters.ContainsKey(nearbyPokemon.EncounterID))
            {
                nearbyEncounters.Add(nearbyPokemon.EncounterID, nearbyPokemon.Encountered);
                this.pogoInstance.Database.AddNearbyPokemon(nearbyPokemon);

                log.Info($"Pokemon, {nearbyPokemon.PokemonID.ToString()}, is nearby at long:{this.pogoInstance.Session.Player.Longitude}, lat:{this.pogoInstance.Session.Player.Latitude}");
                var message = new NearbyPokemonMessage(nearbyPokemon, pogoInstance.Configuration);
                message.Send();
            }
        }