/// <summary> /// Executes any neccessary start up code for the controller. /// /// Exceptions: /// ArgumentNullException: When any parameter is null. /// </summary> public ChannelsController( ILogger <ChannelsController> logger, IChannelsService channelsService ) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _channelsService = channelsService ?? throw new ArgumentNullException(nameof(channelsService)); }
/// <summary> /// Initializes a new instance of the <see cref="GuildsService"/> class. /// </summary> /// <param name="analyticsService">The app's analytics service.</param> /// <param name="cacheService">The app's cache service.</param> /// <param name="channelsService">The app's channel service.</param> /// <param name="presenceService">The app's presence service.</param> /// <param name="dispatcherHelper">The app's dispatcher helper.</param> public GuildsService( IChannelsService channelsService, IDispatcherHelper dispatcherHelper, IPresenceService presenceService) { _channelsService = channelsService; _dispatcherHelper = dispatcherHelper; _presenceService = presenceService; }
public ClearService( IYoutubeProvider youtubeProvider, ILogger <ClearService> logger, IChannelsService channelsService, IVideosService videosService, IPlaylistsService playlistsService) : base(youtubeProvider, logger) { this.channelsService = channelsService; this.videosService = videosService; this.playlistsService = playlistsService; }
public CopyrightService( IYoutubeAuthProvider youtubeAuthProvider, IYoutubeProvider youtubeProvider, ILogger <CopyrightService> logger, string outputFolder, IChannelsService channelsService, IVideosService videosService) : base(youtubeAuthProvider) { this.youtubeProvider = youtubeProvider; this.logger = logger; this.outputFolder = outputFolder; this.channelsService = channelsService; this.videosService = videosService; }
public TransferService( IInstagramProvider instagramProvider, ILogger <TransferService> logger, string outputFolder, IChannelsService channelsService, IMediaService mediaService, int threshold) : base(instagramProvider, logger) { this.outputFolder = outputFolder; this.channelsService = channelsService; this.mediaService = mediaService; this.threshold = threshold; this.InstagramProvider.Login().Wait(); }
/// <summary> /// Initializes a new instance of the <see cref="GatewayService"/> class. /// </summary> /// <param name="analyticsService">The app's analytics service.</param> /// <param name="cacheService">The app's cache service.</param> /// <param name="channelsService">The app's current user service.</param> /// <param name="currentUserService">The app's channels service.</param> /// <param name="guildsService">The app's guilds service.</param> /// <param name="serviceProvider">The app's service provider.</param> public GatewayService( IAnalyticsService analyticsService, ICacheService cacheService, IChannelsService channelsService, ICurrentUserService currentUserService, IGuildsService guildsService, IServiceProvider serviceProvider) { _analyticsService = analyticsService; _cacheService = cacheService; _channelsService = channelsService; _currentUserService = currentUserService; _guildsService = guildsService; _serviceProvider = serviceProvider; }
/// <summary> /// Executes any necessary start up code for the hub. /// /// Exceptions: /// ArgumentNullException: When any parameter is null. /// </summary> public ChatHub( ILogger <ChatHub> logger, IUserService userService, IServerService serverService, IPrivateGroupMessagingService privateGroupMessagingService, IChannelsService channelsService, IDirectMessagingService directMessagingService ) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _userService = userService ?? throw new ArgumentNullException(nameof(userService)); _serverService = serverService ?? throw new ArgumentNullException(nameof(serverService)); _privateGroupMessagingService = privateGroupMessagingService ?? throw new ArgumentNullException(nameof(privateGroupMessagingService)); _channelsService = channelsService ?? throw new ArgumentNullException(nameof(channelsService)); _directMessagingService = directMessagingService ?? throw new ArgumentNullException(nameof(directMessagingService)); }
public TransferService( IYoutubeProvider youtubeProvider, ILogger <TransferService> logger, string outputFolder, IChannelsService channelsService, IVideosService videosService, IPlaylistsService playlistsService, IVideoObfuscateService videoObfuscateService, int threshold) : base(youtubeProvider, logger) { this.outputFolder = outputFolder; this.channelsService = channelsService; this.videosService = videosService; this.playlistsService = playlistsService; this.videoObfuscateService = videoObfuscateService; this.threshold = threshold; }
/// <summary> /// Initializes a new instance of the <see cref="MainViewModel"/> class. /// </summary> /// <param name="analyticsService">The app's analytics service.</param> /// <param name="cacheService">The app's cache service.</param> /// <param name="settingsService">The app's settings service.</param> /// <param name="channelsService">The app's channel service.</param> /// <param name="discordService">The app's discord service.</param> /// <param name="currentUserService">The app's current user service.</param> /// <param name="gatewayService">The app's gateway service.</param> /// <param name="presenceService">The app's presence service.</param> /// <param name="guildsService">The app's guilds service.</param> /// <param name="subFrameNavigationService">The app's subframe navigation service.</param> /// <param name="friendsService">The app's friends service.</param> /// <param name="dispatcherHelper">The app's dispatcher helper.</param> /// <param name="voiceService">The app's voice service.</param> /// <param name="clipboardService">The app's clipboard service.</param> /// <remarks>Takes all service parameters from ViewModel Locator.</remarks> public MainViewModel( IAnalyticsService analyticsService, ICacheService cacheService, ISettingsService settingsService, IChannelsService channelsService, IDiscordService discordService, ICurrentUserService currentUserService, IGatewayService gatewayService, IPresenceService presenceService, IGuildsService guildsService, ISubFrameNavigationService subFrameNavigationService, IFriendsService friendsService, IDispatcherHelper dispatcherHelper, IVoiceService voiceService, IClipboardService clipboardService) { _analyticsService = analyticsService; _cacheService = cacheService; _settingsService = settingsService; _discordService = discordService; _currentUserService = currentUserService; _channelsService = channelsService; _friendsService = friendsService; _presenceService = presenceService; _gatewayService = gatewayService; _guildsService = guildsService; _subFrameNavigationService = subFrameNavigationService; _dispatcherHelper = dispatcherHelper; _voiceService = voiceService; _clipboardService = clipboardService; RegisterGenericMessages(); RegisterChannelsMessages(); RegisterGuildsMessages(); RegisterMembersMessages(); RegisterMessagesMessages(); }
public RocketChatApi( IChatService chatService, IUsersService usersService, IGroupsService groupsService, IChannelsService channelsService, IAuthenticationService authenticationService, IRoomService roomService, IAssetsService assetsService, IAutoTranslateService autoTranslateService, ICommandsService commandsService, IEmojisService emojisService) { Chat = chatService; Users = usersService; Groups = groupsService; Channels = channelsService; Authentication = authenticationService; RoomService = roomService; AssetsService = assetsService; AutoTranslateService = autoTranslateService; CommandsService = commandsService; EmojisService = emojisService; }
public ChannelsController(IChannelsService channelsService) { _ChannelService = channelsService; }
public WebhookController(IChannelsService channelsService) { //_channelsService = channelsService; }
public ChannelsController(IChannelsService channelsService, UserManager <ApplicationUser> userManager) { this.channelsService = channelsService; this.userManager = userManager; }
public ChannelsManager(IChannelsService channelsService) { _channelsService = channelsService; }
public ChannelsController(IChannelsService channelsService) { this.channelsService = channelsService; }
public ChannelsService(IUnityContainer container) { _channelService = container.Resolve <IChannelsService>(); _channelsInfos = new ObservableCollection <ChannelsInfo>(); }
public void Initialize() { _channelsService = new ChannelsWcfService(); }
public ChannelsManager(IChannelsService channelsService, IDevicesRepository devicesRepository) { this.channelsService = channelsService; this.devicesRepository = devicesRepository; }
public EventsManager(IChannelsService channelsService, IProgramsService programsService) { _channelsService = channelsService; _programsService = programsService; }
/// <summary> /// Initializes a new instance of the <see cref="VoiceService"/> class. /// </summary> /// <param name="channelsService">The app's channel service.</param> /// <param name="discordService">The app's discord service.</param> /// <param name="dispatcherHelper">The app's dispatcher helper.</param> /// <param name="gatewayService">The app's gateway service.</param> /// <param name="webrtcManager">The app's webrtc manager.</param> public VoiceService( IChannelsService channelsService, IDiscordService discordService, IDispatcherHelper dispatcherHelper, IGatewayService gatewayService, ISettingsService settingsService) { _channelsService = channelsService; _discordService = discordService; _dispatcherHelper = dispatcherHelper; _gatewayService = gatewayService; _settingsService = settingsService; _ = CreateAppService(); Messenger.Default.Register <GatewayVoiceStateUpdateMessage>(this, m => { _dispatcherHelper.CheckBeginInvokeOnUi(() => { if (VoiceStates.ContainsKey(m.VoiceState.UserId)) { var oldChannel = _channelsService.GetChannel(VoiceStates[m.VoiceState.UserId].ChannelId); oldChannel?.ConnectedUsers.Remove(m.VoiceState.UserId); if (m.VoiceState.ChannelId == null) { if (m.VoiceState.UserId == _discordService.CurrentUser.Id) { DisconnectFromVoiceChannel(); } else { VoiceStates.Remove(m.VoiceState.UserId); } } else { VoiceStates[m.VoiceState.UserId] = m.VoiceState; } } else { VoiceStates[m.VoiceState.UserId] = m.VoiceState; } }); }); Messenger.Default.Register <GatewayVoiceServerUpdateMessage>(this, m => { if (!VoiceStates.ContainsKey(_discordService.CurrentUser.Id)) { VoiceStates.Add( _discordService.CurrentUser.Id, new VoiceState() { ChannelId = m.VoiceServer.ChannelId, GuildId = m.VoiceServer.GuildId, UserId = _discordService.CurrentUser.Id, }); } ConnectToVoiceChannel(m.VoiceServer, VoiceStates[_discordService.CurrentUser.Id]); }); Messenger.Default.Register <SettingChangedMessage <string> >(this, async(m) => { // Todo: this switch (m.Key) { case SettingKeys.InputDevice: SetInputDevice(m.Value); break; case SettingKeys.OutputDevice: SetOutputDevice(m.Value); break; } }); }
public ChannelsManager(IChannelsService channelsService, IDevicesRepository devicesRepository) { _channelsService = channelsService; _devicesRepository = devicesRepository; }