Esempio n. 1
0
        public AnimeListData GetAiringSchedule(ScheduleDay day)
        {
            List <CoreAnimeEntry> list = new List <CoreAnimeEntry>();
            var ret = AnimeListParser.Parse(m_malScheduleLink);

            ret.Animes.ForEach(x =>
            {
                if (DateTime.TryParse(x.Aired, out DateTime res))
                {
                    if (day == ScheduleDay.Any || (int)day == (int)res.DayOfWeek)
                    {
                        list.Add(x);
                    }
                }
                else if (day == ScheduleDay.Unknown)
                {
                    list.Add(x);
                }
            });
            ret.Animes = list;

            return(ret);
        }
Esempio n. 2
0
 public AnimeListData GetLaterList()
 {
     return(AnimeListParser.Parse(m_malLaterLInk));
 }
Esempio n. 3
0
 public async Task <AnimeListData> GetLaterListAsync()
 {
     return(await AnimeListParser.ParseAsync(m_malLaterLInk));
 }
Esempio n. 4
0
 public AnimeListData GetGenreList(Genres genre)
 {
     return(AnimeListParser.Parse(string.Format(m_malGenreLink, (int)genre)));
 }
Esempio n. 5
0
 public async Task <AnimeListData> GetGenreListAsync(Genres genre)
 {
     return(await AnimeListParser.ParseAsync(string.Format(m_malGenreLink, (int)genre)));
 }
Esempio n. 6
0
 public AnimeListData GetSeasonList(int year, Season season)
 {
     return(AnimeListParser.Parse(string.Format(m_malSeasonLink, year, season.ToString().ToLower())));
 }
Esempio n. 7
0
 public async Task <AnimeListData> GetSeasonListAsync(int year, Season season)
 {
     return(await AnimeListParser.ParseAsync(string.Format(m_malSeasonLink, year, season.ToString().ToLower())));
 }