示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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);
     }
 }