public StopQuotedDeltaWarningsPMHandler(AppConfiguration appConfiguration,
                                         IDB4Repository db4Repository, IRedditService redditService)
 {
     _appConfiguration = appConfiguration;
     _db4Repository    = db4Repository;
     _redditService    = redditService;
 }
 public IncomingPrivateMessageObserver(IActivityDispatcher activityDispatcher,
                                       IDB4Repository db4Repository, ILogger logger)
 {
     _activityDispatcher = activityDispatcher;
     _db4Repository      = db4Repository;
     _logger             = logger;
 }
 public IncomingCommentObserver(IActivityDispatcher activityDispatcher,
                                IDB4Repository db4Repository, ILogger logger)
 {
     _activityDispatcher = activityDispatcher;
     _db4Repository      = db4Repository;
     _logger             = logger;
 }
示例#4
0
 public WATTArticleCreatedPMHandler(IDB4Repository db4Repository,
                                    IRedditService redditService,
                                    IStickyCommentEditor stickyCommentEditor)
 {
     _db4Repository       = db4Repository;
     _redditService       = redditService;
     _stickyCommentEditor = stickyCommentEditor;
 }
示例#5
0
 public CommentValidator(AppConfiguration appConfiguration,
                         IDB4Repository db4Repository,
                         ICommentBuilder commentBuilder)
 {
     _appConfiguration = appConfiguration;
     _db4Repository    = db4Repository;
     _commentBuilder   = commentBuilder;
 }
 public StickyCommentEditor(ICommentBuilder commentBuilder,
                            ICommentDetector commentDetector,
                            ICommentReplier commentReplier,
                            IDB4Repository repository)
 {
     _commentBuilder  = commentBuilder;
     _commentDetector = commentDetector;
     _commentReplier  = commentReplier;
     _repository      = repository;
 }
示例#7
0
 public RedditSharpActivityMonitor(RedditSharp.Reddit reddit,
                                   Subreddit subreddit,
                                   IActivityDispatcher activityDispatcher,
                                   IDB4Repository db4Repository,
                                   ILogger logger)
 {
     _reddit             = reddit;
     _subreddit          = subreddit;
     _activityDispatcher = activityDispatcher;
     _db4Repository      = db4Repository;
     _logger             = logger;
 }
示例#8
0
 public DeltaLogEditor(AppConfiguration appConfiguration,
                       IDB4Repository repository,
                       IPostBuilder postBuilder,
                       IRedditService redditService,
                       ISubredditService subredditService)
 {
     _appConfiguration = appConfiguration;
     _repository       = repository;
     _postBuilder      = postBuilder;
     _redditService    = redditService;
     _subredditService = subredditService;
 }
示例#9
0
        public DeltaboardEditor(AppConfiguration appConfiguration,
                                IDB4Repository db4Repository,
                                ISubredditService subredditService)
        {
            _appConfiguration = appConfiguration;
            _db4Repository    = db4Repository;
            _subredditService = subredditService;

            _deltaboardsTemplate       = File.ReadAllText(appConfiguration.TemplateFiles.DeltaboardsTemplateFile);
            _deltaboardTemplate        = File.ReadAllText(appConfiguration.TemplateFiles.DeltaboardTemplateFile);
            _deltaboardRowTemplate     = File.ReadAllText(appConfiguration.TemplateFiles.DeltaboardRowTemplateFile);
            _deltaboardSidebarTemplate = File.ReadAllText(appConfiguration.TemplateFiles.DeltaboardSidebarTemplateFile);
        }
 public RedditSharpActivityMonitor(RedditSharp.Reddit reddit,
                                   Subreddit subreddit,
                                   IActivityDispatcher activityDispatcher,
                                   IDB4Repository db4Repository,
                                   ILogger logger)
 {
     _reddit                 = reddit;
     _subreddit              = subreddit;
     _activityDispatcher     = activityDispatcher;
     _db4Repository          = db4Repository;
     _logger                 = logger;
     _commentObserver        = new IncomingCommentObserver(activityDispatcher, db4Repository, logger);
     _privateMessageObserver = new IncomingPrivateMessageObserver(activityDispatcher, db4Repository, logger);
 }
 public CommentProcessor(AppConfiguration appConfiguration,
                         ILogger logger,
                         IRedditService redditService,
                         ICommentValidator commentValidator,
                         ICommentDetector commentDetector,
                         IDeltaAwarder deltaAwarder,
                         ICommentReplier commentReplier,
                         IDB4Repository db4Repository)
 {
     _appConfiguration = appConfiguration;
     _logger           = logger;
     _redditService    = redditService;
     _commentValidator = commentValidator;
     _commentDetector  = commentDetector;
     _deltaAwarder     = deltaAwarder;
     _commentReplier   = commentReplier;
     _db4Repository    = db4Repository;
 }
示例#12
0
 public DeltaAwarder(AppConfiguration appConfiguration,
                     ILogger logger,
                     IUserWikiEditor wikiEditor,
                     IRedditService redditService,
                     ISubredditService subredditService,
                     IDeltaboardEditor deltaboardEditor,
                     IDeltaLogEditor deltaLogEditor,
                     IStickyCommentEditor stickyCommentEditor,
                     IDB4Repository repository)
 {
     _appConfiguration    = appConfiguration;
     _logger              = logger;
     _wikiEditor          = wikiEditor;
     _redditService       = redditService;
     _subredditService    = subredditService;
     _deltaboardEditor    = deltaboardEditor;
     _deltaLogEditor      = deltaLogEditor;
     _stickyCommentEditor = stickyCommentEditor;
     _repository          = repository;
 }
示例#13
0
 public PrivateMessageHandlerFactory(AppConfiguration appConfiguration,
                                     IDB4Repository db4Repository,
                                     IRedditService redditService,
                                     ISubredditService subredditService,
                                     ICommentDetector commentDetector,
                                     ICommentBuilder commentBuilder,
                                     ICommentReplier replier,
                                     IDeltaAwarder deltaAwarder,
                                     IStickyCommentEditor stickyCommentEditor)
 {
     _appConfiguration    = appConfiguration;
     _db4Repository       = db4Repository;
     _redditService       = redditService;
     _subredditService    = subredditService;
     _commentDetector     = commentDetector;
     _commentBuilder      = commentBuilder;
     _replier             = replier;
     _deltaAwarder        = deltaAwarder;
     _stickyCommentEditor = stickyCommentEditor;
 }