Ejemplo n.º 1
0
        internal static List <SniperInfo> FilterUnmanaged(List <SniperInfo> sniperInfos, Filter filter)
        {
            var verifiedOnly = filter.VerifiedOnly;
            var pokemonIds   = PokemonFilterParser.ParseBinary(filter.Pokemon);
            var channels     = filter.Channels;
            var areaBounds   = filter.AreaBounds;

            return(sniperInfos.Where(
                       s => Matches(s, pokemonIds, verifiedOnly, channels, areaBounds)).ToList());
        }
Ejemplo n.º 2
0
        internal static List <SniperInfo> FilterUnmanaged(List <SniperInfo> sniperInfos, Filter filter)
        {
            var verifiedOnly                = filter.VerifiedOnly;
            var pokemonIds                  = PokemonFilterParser.ParseBinary(filter.Pokemon);
            var channels                    = filter.Channels;
            var areaBounds                  = filter.AreaBounds;
            var minimumIV                   = filter.MinimumIV;
            var useUploadedPokemon          = filter.UseUploadedPokemon;
            var unverifiedOnly              = filter.UnverifiedOnly;
            var pokemonNotInFilterMinimumIV = filter.PokemonNotInFilterMinimumIV;

            return(sniperInfos.Where(
                       s => Matches(s, pokemonIds, verifiedOnly, channels, areaBounds, minimumIV, useUploadedPokemon, unverifiedOnly, pokemonNotInFilterMinimumIV)).ToList());
        }