/// <summary> /// Copies one document's channels to another /// </summary> /// <param name="CopyFrom">RSS document to copy from</param> public virtual void Copy(Document CopyFrom) { if (CopyFrom == null) throw new ArgumentNullException("CopyFrom"); foreach (Channel CurrentChannel in CopyFrom.Channels) { Channels.Add(CurrentChannel); } }
/// <summary> /// Searches hulu for items /// </summary> /// <param name="SearchTerm">Search term</param> /// <returns>An RSS document holding the information</returns> public static Document SearchHulu(string SearchTerm) { Document Results = new Document("http://www.hulu.com/feed/search?query=" + HttpUtility.UrlEncode(SearchTerm) + "&sort_by=relevance"); return Results; }
/// <summary> /// Copies one document's channels to another /// </summary> /// <param name="CopyFrom">RSS document to copy from</param> public void Copy(Document CopyFrom) { foreach (Channel CurrentChannel in CopyFrom.Channels) { Channels.Add(CurrentChannel); } }