Exemplo n.º 1
0
        public void GetPodcasts()
        {
            var list  = PodcastService.GetList("podcast.json");
            var list2 = new List <Object>();

            foreach (Podcast p in list)
            {
                var url      = p.URL;
                var frekvens = p.Frekvensen;
                var kategori = p.Kategorin;

                var pod = new Podcast(url, frekvens, kategori);
                PodcastList.Add(pod);
            }
            foreach (Object o in PodcastList)
            {
                list2.Add(o);
            }
            PodcastService.SaveList(list2, "podcast.json");
        }
Exemplo n.º 2
0
 public void AddPodcast(Podcast podcast)
 {
     PodcastService.AddItemToList(podcast, "podcast.json");
     PodcastList.Clear();
     GetPodcasts();
 }