Exemple #1
0
        public Episode(string title, string link, string description, bool isRead, Podcast p)
        {
            this.title = title;

            if (isRead == true)
            {
                this.title = "✔Har spelats upp!  " + title;
            }
            this.link        = link;
            this.description = description;
            this.isRead      = isRead;
            this.pod         = p;
        }
        static public int gerneratePodcastID()
        {
            PodcastController pc = new PodcastController();
            List <Podcast>    pl = pc.LoadLocalPodcasts();
            int i = 0;

            if (pl.Count > 0)
            {
                Podcast p = pl[pl.Count - 1];
                i = p.id + 1;
            }

            return(i);
        }
Exemple #3
0
 internal async Task <List <Episode> > downloadXml(string url, Podcast p) => await XmlDownloader.LoadRssXml(url, p);