public PodInfo(int pid) { pod = PodMan._download_serialized_json_data <Pod>("https://feedwrangler.net/api/v2/podcasts/show?podcast_id=" + pid).podcast; InitializeComponent(); if (PodMan.Instance.SubscribedPods.Contains(pod)) { subscribed(); } playerPanel = PodMan.Instance.PlayerContainer; podTitle.Text = pod.title; podSum.Text = pod.summary; podPic.ImageLocation = pod.image_url; podPic.LoadAsync(pod.image_url); foreach (Recent_Episodes ep in pod.recent_episodes) { podEpisodes.Rows.Add(ep.title); } podClose.Click += PodClose_Click; }
public override bool Equals(System.Object obj) { // If parameter is null return false. if (obj == null) { return(false); } // If parameter cannot be cast to Point return false. Podcast p = obj as Podcast; if ((System.Object)p == null) { return(false); } // Return true if the fields match: return(podcast_id == p.podcast_id); }
internal void Subscribe(Podcast pod) { pod.recent_episodes = null; SubscribedPods.Add(pod); saveSubs(); }
internal void UnSubscribe(Podcast pod) { SubscribedPods.Remove(pod); saveSubs(); }