Example #1
0
        public static async Task <IEnumerable <Anime> > GetByFilterAsync(Action <AnimeFilter> filter)
        {
            var aFilter = new AnimeFilter();

            filter(aFilter);
            logger.Info($"GetByFilter(Action<AnimeFilter>) | genered_url: [{aFilter.BuildQuery()}]");
            return(await Api.GetAsync <IEnumerable <Anime> >($"/animes{aFilter.BuildQuery()}").ConfigureAwait(false));
        }
Example #2
0
 public static async Task <IEnumerable <Anime> > GetByFilterAsync(AnimeFilter filter)
 {
     return(await Api.GetAsync <IEnumerable <Anime> >($"/animes{filter.BuildQuery()}").ConfigureAwait(false));
 }