Example #1
0
 private static List <NamedAPIResource> GetPokemonSpecies(EFEggGroups eggGroup)
 {
     return(eggGroup
            .PokemonEggGroups
            .Select(x => x.Species.ToNamedApiResource())
            .ToList());
 }
Example #2
0
 private static List <Name> GetNames(EFEggGroups eggGroup)
 {
     return(eggGroup
            .EggGroupProse
            .Select(x => new Name(x.Name, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
Example #3
0
 internal static NamedAPIResource ToNamedApiResource(this EFEggGroups src)
 => src.ToNamedApiResource <EggGroupsController>();