示例#1
0
 private static List <GrowthRateExperienceLevel> GetLevels(EFGrowthRates growthRate)
 {
     return(growthRate
            .Experience
            .Select(x => new GrowthRateExperienceLevel(x.Level, x.Experience1))
            .ToList());
 }
示例#2
0
 private static List <NamedAPIResource> GetPokemonSpecies(EFGrowthRates growthRate)
 {
     return(growthRate
            .PokemonSpecies
            .Select(x => x.ToNamedApiResource())
            .ToList());
 }
示例#3
0
 private static List <Description> GetDescriptions(EFGrowthRates growthRate)
 {
     return(growthRate
            .GrowthRateProse
            .Select(x => new Description(x.Name, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
示例#4
0
 internal static NamedAPIResource ToNamedApiResource(this EFGrowthRates src)
 => src.ToNamedApiResource <GrowthRatesController>();