public void Run(IWebAgent agent, string subreddit, Tweeter tweeter) { sub = RedditSharp.Things.Subreddit.GetByNameAsync(agent, subreddit).Result; subTweeter = tweeter; var stream = sub.GetModerationLog().Stream(); stream.Subscribe(this); stream.Enumerate(new System.Threading.CancellationToken()); }
public static Subreddit GetFrontPage(Reddit reddit) { var frontPage = new Subreddit { DisplayName = "Front Page", Title = "reddit: the front page of the internet", Url = new Uri("/", UriKind.Relative), Name = "/", Reddit = reddit, WebAgent = reddit.WebAgent }; return(frontPage); }
public static Subreddit GetRSlashAll(Reddit reddit) { var rSlashAll = new Subreddit { DisplayName = "/r/all", Title = "/r/all", Url = new Uri("/r/all", UriKind.Relative), Name = "all", Reddit = reddit, WebAgent = reddit.WebAgent }; return(rSlashAll); }
/// <summary> /// Returns the parent <see cref="Subreddit"/> for this post /// </summary> /// <returns></returns> public Task <Subreddit> GetSubredditAsync() { return(Subreddit.GetByNameAsync(WebAgent, SubredditName)); }
public static Subreddit GetFrontPage(Reddit reddit) { var frontPage = new Subreddit { DisplayName = "Front Page", Title = "reddit: the front page of the internet", Url = new Uri("/", UriKind.Relative), Name = "/", Reddit = reddit, WebAgent = reddit.WebAgent }; return frontPage; }
public static Subreddit GetRSlashAll(Reddit reddit) { var rSlashAll = new Subreddit { DisplayName = "/r/all", Title = "/r/all", Url = new Uri("/r/all", UriKind.Relative), Name = "all", Reddit = reddit, WebAgent = reddit.WebAgent }; return rSlashAll; }
public HighTechBanHammer(HighTechBanHammerSettings sets, RedditSharp.Things.Subreddit subreddit) : this() { Settings = sets; Subreddit = subreddit; }
public HighTechBanHammer( HighTechBanHammerSettings sets, RedditSharp.Things.Subreddit subreddit ) : this() { Settings = sets; Subreddit = subreddit; }