public ChannelModule( IAppConfiguration appConfiguration, IIrcClient freenodeClient, IChannelConfiguration channelConfiguration, IBotUserConfiguration botUserConfiguration, IStalkNodeFactory stalkNodeFactory, ISubscriptionHelper subscriptionHelper, IFlagService flagService ) : base(appConfiguration, freenodeClient) { this.channelConfiguration = channelConfiguration; this.botUserConfiguration = botUserConfiguration; this.stalkNodeFactory = stalkNodeFactory; this.subscriptionHelper = subscriptionHelper; this.flagService = flagService; this.Get["/channels"] = this.GetChannelList; this.Get["/channels/{channel}"] = this.GetChannelInfo; this.Get["/channels/{channel}/new"] = this.NewStalk; this.Post["/channels/{channel}/new"] = this.PostNewStalk; this.Post["/channels/{channel}/subscribe"] = this.ChannelSubscribe; this.Post["/channels/{channel}/unsubscribe"] = this.ChannelUnsubscribe; this.Get["/channels/{channel}/stalk/{stalk}"] = this.GetStalkInfo; this.Get["/channels/{channel}/stalk/{stalk}/edit"] = this.GetStalkInfoForEdit; this.Get["/channels/{channel}/stalk/{stalk}/delete"] = this.GetStalkInfoForDelete; this.Post["/channels/{channel}/stalk/{stalk}/delete"] = this.DeleteStalk; this.Post["/channels/{channel}/stalk/{stalk}/edit"] = this.PostStalkInfo; this.Post["/channels/{channel}/stalk/{stalk}/subscribe"] = this.StalkSubscribe; this.Post["/channels/{channel}/stalk/{stalk}/unsubscribe"] = this.StalkUnsubscribe; }
public StalkFactory( ILogger logger, IStalkNodeFactory stalkNodeFactory, IIrcClient freenodeClient, IAppConfiguration appConfig) : base(logger, stalkNodeFactory) { this.freenodeClient = freenodeClient; this.appConfig = appConfig; }
public TemplateConfiguration( IAppConfiguration appConfig, ILogger logger, ITemplateFactory factory, ICommandParser commandParser, IStalkNodeFactory stalkNodeFactory, IFileService fileService) : base(appConfig.TemplateConfigFile, "templates", logger, factory.NewFromXmlElement, factory.ToXmlElement, fileService) { this.commandParser = commandParser; this.stalkNodeFactory = stalkNodeFactory; }
public StalkCommand( string commandSource, IUser user, IList <string> arguments, ILogger logger, IFlagService flagService, IConfigurationProvider configurationProvider, IIrcClient client, IChannelConfiguration channelConfiguration, IStalkNodeFactory stalkNodeFactory, IAppConfiguration config, INotificationTemplates templates, IEmailHelper emailHelper, IXmlCacheService xmlCacheService, IBotUserConfiguration botUserConfiguration, ISubscriptionHelper subscriptionHelper, IIrcClient wikimediaClient, IEmailTemplateFormatter emailTemplateFormatter ) : base( commandSource, user, arguments, logger, flagService, configurationProvider, client) { this.channelConfiguration = channelConfiguration; this.config = config; this.templates = templates; this.emailHelper = emailHelper; this.xmlCacheService = xmlCacheService; this.botUserConfiguration = botUserConfiguration; this.subscriptionHelper = subscriptionHelper; this.wikimediaClient = wikimediaClient; this.emailTemplateFormatter = emailTemplateFormatter; this.stalkNodeFactory = stalkNodeFactory; }
protected StalkConfigFactoryBase(ILogger logger, IStalkNodeFactory stalkNodeFactory) : base(logger) { this.StalkNodeFactory = stalkNodeFactory; }
public TemplateFactory(ILogger logger, IStalkNodeFactory stalkNodeFactory, IAppConfiguration appConfig) : base(logger, stalkNodeFactory) { this.appConfig = appConfig; }
public DisplayStalk(IStalk stalk, IAppConfiguration appConfiguration, IStalkNodeFactory stalkNodeFactory) { this.appConfiguration = appConfiguration; this.stalkNodeFactory = stalkNodeFactory; this.Stalk = stalk; }