Exemplo n.º 1
0
 public static void HandleEvent(SnipePokemonFoundEvent ev, ISession session)
 {
     HumanWalkSnipeTask.AddSnipePokemon("Local Feeder",
                                        ev.PokemonFound.Id,
                                        ev.PokemonFound.Latitude,
                                        ev.PokemonFound.Longitude,
                                        ev.PokemonFound.ExpirationTimestamp,
                                        ev.PokemonFound.IV,
                                        session
                                        );
 }
Exemplo n.º 2
0
        public static void HandleEvent(EncounteredEvent ev, ISession session)
        {
            if (!ev.IsRecievedFromSocket)
            {
                return;
            }

            HumanWalkSnipeTask.AddSnipePokemon("mypogosnipers.com",
                                               ev.PokemonId,
                                               ev.Latitude,
                                               ev.Longitude,
                                               ev.Expires,
                                               ev.IV,
                                               session
                                               );
        }
Exemplo n.º 3
0
        public static async Task HandleEventAsync(EncounteredEvent ev, ISession session)
        {
            if (!ev.IsRecievedFromSocket)
            {
                return;
            }

            await HumanWalkSnipeTask.AddSnipePokemon("mypogosnipers.com",
                                                     ev.PokemonId,
                                                     ev.Latitude,
                                                     ev.Longitude,
                                                     ev.Expires,
                                                     ev.IV,
                                                     session
                                                     ).ConfigureAwait(false);
        }