public Feed(string url) { this.TheList = new RssList <Episode>(); this.Url = url; this.Name = RSSDataBaseHandling.GetName(Url); SetTimer(); }
public void SetTimer() { Task.Run(async() => { while (true) { TheList = RSSDataBaseHandling.GetEpisodes(Url); FeedChanged(); await Task.Delay(UpdatingInterval * 60000); } }); }
public static bool CheckRssLink(string url) { string title = RSSDataBaseHandling.GetName(url); if (title != null) { return(true); } else { throw new RssReaderException("Kan inte hitta någon data." + "\n" + "Kontrollera den angivna länken."); } }
public string ForceName() { Name = RSSDataBaseHandling.GetName(Url); return(Name); }
public RssList <Episode> ForceList() { TheList = RSSDataBaseHandling.GetEpisodes(Url); return(TheList); }
public FeedList Load() { return(RSSDataBaseHandling.Deserialize()); }
public void Save() { RSSDataBaseHandling.Serialize(this); }