public HomeController()
 {
     m_embedService = new EmbedService();
     //string pass = "******";
     //var toooo = PasswordHash.HashPassword(pass);
     //var res = PasswordHash.ValidatePassword(pass, "1000:VcMzlTrfXGWXypu5jigcl3KbqKLIIxy/:8GqHqniMIUgOCPnlWvfuGbCelUQ=");
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EmbedController"/> class
 /// </summary>
 /// <param name="embedService">The embed service which is used to communicate with the logic layer.</param>
 /// <param name="mapper">The mapper which is used to convert the resources to the models to the resource results.</param>
 /// <param name="projectService">The project service which is used to communicate with the logic layer.</param>
 /// <param name="userService">The user service which is used to communicate with the logic layer.</param>
 public EmbedController(IEmbedService embedService, IMapper mapper, IProjectService projectService, IUserService userService)
 {
     this.embedService   = embedService;
     this.mapper         = mapper;
     this.projectService = projectService;
     this.userService    = userService;
 }
 public AdminModule(IBotConfig botConfig, IEmbedService embedService, IEmbedPayloadFactory embedPayloadFactory,
                    IResources resources, IFormattingService formattingService, IDiscordPayloadFactory discordPayloadFactory,
                    IDiscordModuleService discordModuleService)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
     _formattingService     = formattingService;
     _discordPayloadFactory = discordPayloadFactory;
 }
 public OwnerLogger(DiscordSocketClient client, IEmbedService embedService, IBotConfig botConfig,
                    IEmbedPayloadFactory embedPayloadFactory, IResources resources)
 {
     _client              = client;
     _embedService        = embedService;
     _botConfig           = botConfig;
     _embedPayloadFactory = embedPayloadFactory;
     _resources           = resources;
 }
예제 #5
0
        public BotModuleBase(IBotConfig botConfig, IEmbedService embedService, IEmbedPayloadFactory embedPayloadFactory,
                             IResources resources)
        {
            _botConfig           = botConfig;
            _embedService        = embedService;
            _embedPayloadFactory = embedPayloadFactory;
            _resources           = resources;

            _subModuleName = GetType().Name;
        }
        public HomeController()
        {
            //Note: QuickStat Reports Constrcutor call
            m_embedService    = new EmbedService();
            m_LFLembedService = new QuickStatLFLEmbedService();
            //Note: Finance Reports Constructor call
            m_FinanceFYview = new FinanceFYView();
            m_FinanceHOview = new FinanceHOView();
            m_FinanceMLview = new FinanceMLView();
            //Note: Operational Reports Constructor call
            m_OpInsights                = new OPInsight();
            m_OpDailyLabourAnalysis     = new OPDailyLabourAnalysis();
            m_OpActualProjectLabour     = new OPActualProjectLabour();
            m_OpSalesByProductHierarchy = new OPSalesProdHierarchy();
            m_OpMysteryShopperQAR       = new OPMysteryShopperQAR();
            m_HOMAAUES             = new HOMAAUES();
            m_OPsalesByPromotions  = new OPsalesByPromotions();
            m_OPdailyCropStoreView = new OPdailyCropStoreView();
            //Note: Scorecard Reports Constructor call
            m_SCSummary         = new SCSummary();
            m_SCAggView         = new SCAggView();
            m_SCMonthlyRunRate  = new SCMonRunRate();
            m_NetworkComparison = new NetworkComparison();

            //Note: Head Office Reports constructor call
            m_FinanceReport   = new HOFinanceReportService();
            m_MarketingReport = new HOMarketingReportService();
            //Note: Head Office Finance Constructor Call
            m_HOFDCSSR  = new HOFDCSSR();
            m_HOFSBDBMT = new HOFSBDBMT();
            m_HOFSSFW   = new HOFSSFW();
            m_HOFGCS    = new HOFGCS();
            m_HOFSSFMY  = new HOFSSFMY();
            m_HOFLSSFY  = new HOFLSSFY();
            m_HOFLSSF   = new HOFLSSF();
            m_HOFBST    = new HOFBST();
            m_HOFRSD    = new HOFRSD();
            m_HOFSBS    = new HOFSBS();
            //Note: Head Offfice Marketing Constructor Call
            m_HOMBSR    = new HOMBSR();
            m_HOMMAATV  = new HOMMAATV();
            m_HOMMR     = new HOMMR();
            m_HOMPSC    = new HOMPSC();
            m_HOMSBTR   = new HOMSBTR();
            m_HOMTTMRBS = new HOMTTMRBS();
            m_HOMBST    = new HOMBST();
            m_HOMWR     = new HOMWR();
            //Note: Help Report constructor call
            m_HelpReport = new HelpReportService();
            //Note: Mobile Reports constructor call
            m_QuickStat_Mobile    = new MobileQuickStatReportServie();
            m_QuickStatLFL_Mobile = new MobileQuickStatLFLReportService();
            m_SCSummary_Mobile    = new MobileSCSummaryService();
            m_DailyLabour_Mobile  = new MobileDailyLabourReportService();
        }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EmbedController"/> class
 /// </summary>
 /// <param name="embedService">The embed service which is used to communicate with the logic layer.</param>
 /// <param name="mapper">The mapper which is used to convert the resources to the models to the resource results.</param>
 /// <param name="projectService">The project service which is used to communicate with the logic layer.</param>
 /// <param name="userService">The user service which is used to communicate with the logic layer.</param>
 /// <param name="authorizationHelper">The authorization helper which is used to communicate with the authorization helper class.</param>
 public EmbedController(IEmbedService embedService,
                        IMapper mapper,
                        IProjectService projectService,
                        IUserService userService,
                        IAuthorizationHelper authorizationHelper)
 {
     this.embedService        = embedService;
     this.mapper              = mapper;
     this.projectService      = projectService;
     this.userService         = userService;
     this.authorizationHelper = authorizationHelper;
 }
        public EventService(IAPIService apiService, IDiscordModuleService discordModuleService, IOwnerLogger ownerLogger,
                            DiscordSocketClient client, IResources resources, IEmbedPayloadFactory embedPayloadFactory,
                            IEmbedService embedService, IDiscordPayloadFactory discordPayloadFactory)
        {
            _apiService           = apiService;
            _discordModuleService = discordModuleService;
            _embedPayloadFactory  = embedPayloadFactory;
            _embedService         = embedService;
            _ownerLogger          = ownerLogger;
            _resouces             = resources;

            _timer          = new Timer(1 * 60 * 1000); //10 minutes
            _timer.Elapsed += new ElapsedEventHandler(OnTimeElapsed);
            _timer.Start();
        }
예제 #9
0
        public GuildLoggingService(DiscordSocketClient client, IAPIService apiService, IDiscordPayloadFactory discordPayloadFactory,
                                   IEmbedPayloadFactory embedPayloadFactory, IResources resourceService, IEmbedService embedService)
        {
            _client                = client;
            _apiService            = apiService;
            _discordPayloadFactory = discordPayloadFactory;
            _embedPayloadFactory   = embedPayloadFactory;
            _resourceService       = resourceService;
            _embedService          = embedService;

            client.UserJoined     += UserJoined;
            client.UserLeft       += UserLeft;
            client.UserBanned     += UserBanned;
            client.UserUnbanned   += UserUnbanned;
            client.UserUpdated    += UserUpdated;
            client.MessageUpdated += MessageUpdated;
            client.MessageDeleted += MessageDeleted;
        }
        public CommandHandler(CommandService commandService, DiscordSocketClient client, CustomCommandHandler customCommandHandler,
                              InjhinuityInstance injhinuity, IOwnerLogger ownerLogger, IResources resources,
                              IEmbedPayloadFactory embedPayloadFactory, IEmbedService embedService /*, FoolsService foolsService
                                                                                                    * ConversationHandler conversationHandler, IPollService pollService*/)
        {
            _log = LogManager.GetCurrentClassLogger();

            _client               = client;
            _commandService       = commandService;
            _injhinuity           = injhinuity;
            _ownerLogger          = ownerLogger;
            _customCommandHandler = customCommandHandler;
            _resources            = resources;
            _embedPayloadFactory  = embedPayloadFactory;
            _embedService         = embedService;
            //_foolsService = foolsService;
            //_conversationHandler = conversationHandler;
            //_pollService = pollService;
        }
예제 #11
0
 public HelpModule(IHelpService helpService, IBotConfig botConfig, IEmbedService embedService,
                   IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, embedService, embedPayloadFactory, resources)
 {
     _helpService = helpService;
 }
예제 #12
0
 public LoggingModule(IDiscordModuleService discordModuleService, IBotConfig botConfig, IEmbedService embedService,
                      IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
 }
예제 #13
0
 public AutoDashController()
 {
     m_embedService = new EmbedService();
 }
예제 #14
0
 public ListableBotModuleBase(IBotConfig botConfig, IDiscordModuleService discordModuleService, IEmbedService embedService,
                              IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
 }
예제 #15
0
 public pbiembedded()
 {
     m_embedService = new EmbedService();
 }
 public DashboardController()
 {
     m_embedService = new EmbedService();
 }
예제 #17
0
 public ParamModule(IParamService paramService, IDiscordModuleService discordModuleService, IBotConfig botConfig,
                    IEmbedService embedService, IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
     _paramService = paramService;
 }
 public _Default()
 {
     m_embedService = new EmbedService();
 }
 public ChannelModule(IDiscordModuleService discordModuleService, IChannelService channelService, IBotConfig botConfig,
                      IEmbedService embedService, IEmbedPayloadFactory embedPayloadFactory, IResources resources)
     : base(botConfig, discordModuleService, embedService, embedPayloadFactory, resources)
 {
     _channelService = channelService;
 }
예제 #20
0
 public Embed(IEmbedService embedService)
 {
     _embedService = embedService;
 }
 public HomeController()
 {
     m_embedService = new EmbedService();
 }
예제 #22
0
 public TestController()
 {
     m_embedService = new EmbedService();
 }