コード例 #1
0
 public DiscordPingWorkFlow(
     SocketCommandContext context,
     DiscordSocketClient discord,
     DiscordSettingsProvider discordSettingsProvider)
     : base(discord, context, discordSettingsProvider)
 {
     _discordSettings = discordSettingsProvider.Provide();
 }
コード例 #2
0
 public DiscordHelpWorkFlow(
     DiscordClient discordClient,
     InteractionContext context,
     DiscordSettingsProvider discordSettingsProvider)
 {
     _discordSettings = discordSettingsProvider.Provide();
     _discordClient   = discordClient;
     _context         = context;
 }
コード例 #3
0
 public DiscordMovieRequestingWorkFlow(
     SocketCommandContext context,
     DiscordSocketClient discord,
     IMovieSearcher movieSearcher,
     IMovieRequester movieRequester,
     DiscordSettingsProvider discordSettingsProvider,
     MovieNotificationsRepository notificationRequestRepository)
     : base(discord, context, discordSettingsProvider)
 {
     _movieSearcher  = movieSearcher;
     _movieRequester = movieRequester;
     _notificationRequestRepository = notificationRequestRepository;
     _discordSettings = discordSettingsProvider.Provide();
 }
コード例 #4
0
 public DiscordTvShowsRequestingWorkFlow(
     SocketCommandContext context,
     DiscordSocketClient discord,
     ITvShowSearcher tvShowSearcher,
     ITvShowRequester tvShowRequester,
     DiscordSettingsProvider discordSettingsProvider,
     TvShowNotificationsRepository notificationsRepository)
     : base(discord, context, discordSettingsProvider)
 {
     _discord                 = discord;
     _tvShowSearcher          = tvShowSearcher;
     _tvShowRequester         = tvShowRequester;
     _discordSettingsProvider = discordSettingsProvider;
     _notificationsRepository = notificationsRepository;
     _discordSettings         = discordSettingsProvider.Provide();
 }