예제 #1
0
 private static List <NamedAPIResource> GetMoves(EFSuperContestEffects superContestEffect)
 {
     return(superContestEffect
            .Moves
            .Select(x => x.ToNamedApiResource())
            .ToList());
 }
예제 #2
0
 private static List <FlavorText> GetFlavorTextEntries(EFSuperContestEffects superContestEffect)
 {
     return(superContestEffect
            .SuperContestEffectProse
            .Select(x => new FlavorText(x.FlavorText, x.LocalLanguage.ToNamedApiResource()))
            .ToList());
 }
예제 #3
0
 internal static APIResource ToApiResource(this EFSuperContestEffects src)
 => src.ToApiResource <SuperContestEffectsController>();