Esempio n. 1
0
 public SlackRequestHandler(
     IEventHandler eventHandler,
     IAsyncBlockActionHandler blockActionHandler,
     IBlockOptionProvider blockOptionProvider,
     IInteractiveMessageHandler interactiveMessageHandler,
     IAsyncMessageShortcutHandler messageShortcutHandler,
     IAsyncGlobalShortcutHandler globalShortcutHandler,
     IOptionProvider optionProvider,
     IDialogSubmissionHandler dialogSubmissionHandler,
     IAsyncViewSubmissionHandler viewSubmissionHandler,
     IAsyncSlashCommandHandler slashCommandHandler,
     SlackJsonSettings jsonSettings)
 {
     _eventHandler              = eventHandler;
     _blockActionHandler        = blockActionHandler;
     _blockOptionProvider       = blockOptionProvider;
     _interactiveMessageHandler = interactiveMessageHandler;
     _messageShortcutHandler    = messageShortcutHandler;
     _globalShortcutHandler     = globalShortcutHandler;
     _optionProvider            = optionProvider;
     _dialogSubmissionHandler   = dialogSubmissionHandler;
     _viewSubmissionHandler     = viewSubmissionHandler;
     _slashCommandHandler       = slashCommandHandler;
     _jsonSettings              = jsonSettings;
 }
Esempio n. 2
0
 public static IAsyncGlobalShortcutHandler ToGlobalShortcutHandler(this IAsyncGlobalShortcutHandler handler, string callbackId) =>
 new SpecificGlobalShortcutHandler(callbackId, handler);
 protected abstract void AddGlobalShortcutHandler(IAsyncGlobalShortcutHandler handler);
 public TConfig RegisterAsyncGlobalShortcutHandler(IAsyncGlobalShortcutHandler handler) =>
 Chain(() => AddGlobalShortcutHandler(handler));
 public TConfig RegisterAsyncGlobalShortcutHandler(string callbackId, IAsyncGlobalShortcutHandler handler) =>
 RegisterAsyncGlobalShortcutHandler(handler.ToGlobalShortcutHandler(callbackId));
 public SpecificGlobalShortcutHandler(string callbackId, IAsyncGlobalShortcutHandler handler)
 {
     _callbackId = callbackId;
     _handler    = handler;
 }
Esempio n. 7
0
 protected override void AddGlobalShortcutHandler(IAsyncGlobalShortcutHandler handler) => AddCollectionHandler(handler);