예제 #1
0
 public Handler(IPolychatService polychatService, IDiscordRestChannelAPI channelApi, PolychatSettings polychatSettings, ILogger <HandleServerStatus> logger)
 {
     _polychatService  = polychatService;
     _channelApi       = channelApi;
     _polychatSettings = polychatSettings;
     _logger           = logger;
 }
예제 #2
0
 public RestartNotifierService(
     ILogger <RestartNotifierService> logger,
     IMediator mediator,
     IPolychatService ps
     ) : base(TimeBetweenIterationsInMillis, logger)
 {
     _mediator = mediator;
     _ps       = ps;
     _logger   = logger;
 }
예제 #3
0
        public BroadcastsHostedService(ILogger <BroadcastsHostedService> logger, IPolychatService ps, PolychatSettings polychatSettings)
        {
            _logger = logger;
            _ps     = ps;

            _id                = polychatSettings.BroadcastsSettings?.Id;
            _prefix            = polychatSettings.BroadcastsSettings?.Prefix;
            _broadcastMessages = polychatSettings.BroadcastsSettings?.BroadcastMessages;

            _broadcastMessagesIndex = 0;
        }
 public DiscordChatMessageForwarder(
     IPolychatService polychatService,
     PolychatSettings polychatSettings,
     DiscordSettings discordSettings,
     IDiscordSanitiserService sanitiser
     )
 {
     _polychatService  = polychatService;
     _polychatSettings = polychatSettings;
     _discordSettings  = discordSettings;
     _sanitiser        = sanitiser;
 }
 /// <summary>
 /// Instantiates a new instance of <see cref="MinecraftServersCommands"/> class.
 /// </summary>
 /// <param name="context">The message context.</param>
 /// <param name="mediator">The mediator.</param>
 /// <param name="colourPalette">The colour palette.</param>
 /// <param name="polychatService">The polychat service.</param>
 /// <param name="responder">The command responder.</param>
 public MinecraftServersCommands(
     MessageContext context,
     IMediator mediator,
     IColourPalette colourPalette,
     IPolychatService polychatService,
     ICommandResponder responder
     )
 {
     _context         = context;
     _mediator        = mediator;
     _colourPalette   = colourPalette;
     _polychatService = polychatService;
     _responder       = responder;
 }
 public AutoServerRestartJob(
     ILogger <AutoServerRestartJob> logger,
     PolychatSettings settings,
     IPolychatService polychatService,
     IMediator mediator,
     TelemetryClient?telemetryClient = null
     )
 {
     _logger          = logger;
     _settings        = settings;
     _polychatService = polychatService;
     _mediator        = mediator;
     _telemetryClient = telemetryClient;
 }
예제 #7
0
 /// <summary>
 /// Instantiates a new instance of <see cref="Handler"/> class.
 /// </summary>
 /// <param name="context">The DB context.</param>
 /// <param name="ps">The polychat service.</param>
 /// <param name="guildApi">The guild API.</param>
 /// <param name="userApi">The user API.</param>
 /// <param name="channelApi">The channel API.</param>
 /// <param name="colourPalette">The colour palette.</param>
 /// <param name="logger">The logger.</param>
 public Handler(
     BotContext context,
     IPolychatService ps,
     IDiscordRestGuildAPI guildApi,
     IDiscordRestUserAPI userApi,
     IDiscordRestChannelAPI channelApi,
     IColourPalette colourPalette,
     ILogger <Handler> logger
     )
 {
     _context       = context;
     _ps            = ps;
     _guildApi      = guildApi;
     _userApi       = userApi;
     _channelApi    = channelApi;
     _colourPalette = colourPalette;
     _logger        = logger;
 }
예제 #8
0
 public Handler(IPolychatService polychatService, IDiscordRestChannelAPI channelApi, PolychatSettings polychatSettings)
 {
     _polychatService  = polychatService;
     _channelApi       = channelApi;
     _polychatSettings = polychatSettings;
 }
예제 #9
0
 public Handler(ILogger <HandleServerInfo> logger, IPolychatService polychatService)
 {
     _logger          = logger;
     _polychatService = polychatService;
 }
예제 #10
0
 public Handler(IPolychatService polychatService)
 {
     _polychatService = polychatService;
 }
예제 #11
0
 public Handler(IPolychatService ps)
 => _ps = ps;
예제 #12
0
 /// <summary>
 /// Instantiates a new instance of <see cref="Handler"/>.
 /// </summary>
 /// <param name="context">The db context.</param>
 /// <param name="guildApi">The guild API.</param>
 /// <param name="ps">The polychat service.</param>
 public Handler(BotContext context, IDiscordRestGuildAPI guildApi, IPolychatService ps)
 {
     _context  = context;
     _guildApi = guildApi;
     _ps       = ps;
 }