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); }
public AnimeListData GetLaterList() { return(AnimeListParser.Parse(m_malLaterLInk)); }
public AnimeListData GetGenreList(Genres genre) { return(AnimeListParser.Parse(string.Format(m_malGenreLink, (int)genre))); }
public AnimeListData GetSeasonList(int year, Season season) { return(AnimeListParser.Parse(string.Format(m_malSeasonLink, year, season.ToString().ToLower()))); }