Esempio n. 1
0
 /// <summary>
 /// Retrieves data for specified subreddit
 /// </summary>
 /// <param name="Subreddit">Subreddit to look up and retrieve data from</param>
 public BySubreddit(string Subreddit)
 {
     try
     {
         this.Subreddit = Subreddit;
         rss            = new RSS.RSS(BASEURL + Subreddit.Trim().ToLower() + "/.rss");
     }
     catch (Exception e) { throw e; }
 }
Esempio n. 2
0
 /// <summary>
 /// Retrieves data for specified user
 /// </summary>
 /// <param name="User">User to look up and retrieve data from</param>
 public ByUser(string User)
 {
     try
     {
         this.User = User;
         rss       = new RSS.RSS(BASEURL + User.Trim().ToLower() + "/.rss");
     }
     catch (Exception e) { throw e; }
 }
Esempio n. 3
0
 /// <summary>
 /// Retrieves data for specified subreddits
 /// </summary>
 /// <param name="Subreddits">A list of subreddits to retrieve RSS's from</param>
 public ByMultireddit(List <string> Subreddits)
 {
     try
     {
         this.Subreddits = Subreddits;
         StringBuilder subreddits = new StringBuilder();
         foreach (string s in Subreddits)
         {
             subreddits.Append(s).Append("+");
         }
         subreddits.Length--;
         rss = new RSS.RSS(BASEURL + subreddits.ToString().Trim().ToLower() + "/.rss");
     }
     catch (Exception e) { throw e; }
 }