コード例 #1
0
        /// <summary>
        /// Returns the varieties of the Pokemon species with the given ID in the version group with
        /// the given ID.
        /// </summary>
        public async Task <Models.PokemonEntry[]> GetPokemonSpeciesVarieties(int speciesId, int versionGroupId)
        {
            var entry = await Upsert(speciesId);

            var varietyEntries = await PokemonService.UpsertMany(entry.Varieties.Select(v => v.Id));

            return(varietyEntries.OrderBy(v => v.PokemonId).ToArray());
        }