Пример #1
0
 private static List <Description> GetDescriptions(EFPokemonShapes pokemonShape)
 {
     return(pokemonShape
            .PokemonShapeProse
            .Select(x => new Description(x.Description, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
Пример #2
0
 private static List <NamedAPIResource> GetPokemonSpecies(EFPokemonShapes pokemonShape)
 {
     return(pokemonShape
            .PokemonSpecies
            .Select(x => x.ToNamedApiResource())
            .ToList());
 }
Пример #3
0
 private static List <AwesomeName> GetAwesomeNames(EFPokemonShapes pokemonShape)
 {
     return(pokemonShape
            .PokemonShapeProse
            .Select(x => new AwesomeName(x.AwesomeName, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
Пример #4
0
 internal static NamedAPIResource ToNamedApiResource(this EFPokemonShapes src)
 => src.ToNamedApiResource <PokemonShapesController>();