Example #1
0
        public MusicService(ILogger logger,
                            IMusicProviderFactory musicProviderFactory,
                            IAutoPlay autoplayer,
                            IDataService <QueuedTrack> queuedTrackDataService,
                            IDataService <User> adminUserDataService,
                            ISearchSuggestionService searchSuggestionService,
                            IRickRollService rickRollService,
                            IBroadcastService broadcastService,
                            ISoundBoardService soundBoardService,
                            ISkipHelper skipHelper,
                            IVolume volume,
                            IQueueManager queueManager,
                            IAlreadyQueuedHelper alreadyQueuedHelper,
                            IMusicPlayer musicPlayer,
                            ICallbackClient callbackClient,
                            IUserService userService,
                            IVetoHelper vetoHelper,
                            IQueueRuleHelper queueRuleHelper,
                            ISettings settings,
                            ISearchRuleHelper searchRuleHelper
                            )
        {
            this.vetoHelper          = vetoHelper;
            this.callbackClient      = callbackClient;
            this.alreadyQueuedHelper = alreadyQueuedHelper;
            this.queueManager        = queueManager;
            this.broadcastService    = broadcastService;
            this.rickRollService     = rickRollService;
            this.logger = logger;
            this.musicProviderFactory    = musicProviderFactory;
            this.autoplayer              = autoplayer;
            this.queuedTrackDataService  = queuedTrackDataService;
            this.adminUserDataService    = adminUserDataService;
            this.searchSuggestionService = searchSuggestionService;
            this.soundBoardService       = soundBoardService;
            this.skipHelper              = skipHelper;
            this.volume          = volume;
            this.musicPlayer     = musicPlayer;
            this.callbackClient  = callbackClient;
            this.userService     = userService;
            this.queueRuleHelper = queueRuleHelper;
            this.settings        = settings;

            this.searchRuleHelper = searchRuleHelper;
            foreach (var provider in musicProviderFactory.GetAllMusicProviders())
            {
                provider.TrackEnded += musicProvider_TrackEnded;
            }

            if (settings.AutoStart)
            {
                PlayNextTrack();
            }
        }
Example #2
0
	    public MusicService(ILogger logger,
			IMusicProviderFactory musicProviderFactory,
			IAutoPlay autoplayer,
            IDataService<QueuedTrack> queuedTrackDataService,
			IDataService<User> adminUserDataService,
			ISearchSuggestionService searchSuggestionService,
			IRickRollService rickRollService,
			IBroadcastService broadcastService,
			ISoundBoardService soundBoardService,
            ISkipHelper skipHelper,
            IVolume volume,
            IQueueManager queueManager,
            IAlreadyQueuedHelper alreadyQueuedHelper,
            IMusicPlayer musicPlayer,
            ICallbackClient callbackClient,
            IUserService userService,
			IVetoHelper vetoHelper,
            IQueueRuleHelper queueRuleHelper,
            ISettings settings,
            ISearchRuleHelper searchRuleHelper
            )
		{
	        this.vetoHelper = vetoHelper;
	        this.callbackClient = callbackClient;
	        this.alreadyQueuedHelper = alreadyQueuedHelper;
	        this.queueManager = queueManager;
	        this.broadcastService = broadcastService;
			this.rickRollService = rickRollService;
			this.logger = logger;
			this.musicProviderFactory = musicProviderFactory;
			this.autoplayer = autoplayer;
			this.queuedTrackDataService = queuedTrackDataService;
			this.adminUserDataService = adminUserDataService;
			this.searchSuggestionService = searchSuggestionService;
			this.soundBoardService = soundBoardService;
			this.skipHelper = skipHelper;
            this.volume = volume;
            this.musicPlayer = musicPlayer;
	        this.callbackClient = callbackClient;
            this.userService = userService;            
            this.queueRuleHelper = queueRuleHelper;
	        this.settings = settings;

	        this.searchRuleHelper = searchRuleHelper;
	        foreach (var provider in musicProviderFactory.GetAllMusicProviders())
			{
				provider.TrackEnded += musicProvider_TrackEnded;        
			}

			if (settings.AutoStart)
			{
			    PlayNextTrack();
			}
		}
Example #3
0
 public MusicPlayer(
     ILogger logger, 
     IMusicProviderFactory musicProviderFactory, 
     IRickRollService rickRollService, 
     IDataService<QueuedTrack> queuedTrackDataService,
     IAlreadyQueuedHelper alreadyQueuedHelper, 
     ICallbackClient callbackClient,
     INowHelper nowHelper)
 {
     this.nowHelper = nowHelper;
     this.callbackClient = callbackClient;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
     this.queuedTrackDataService = queuedTrackDataService;
     this.rickRollService = rickRollService;
     this.musicProviderFactory = musicProviderFactory;
     this.logger = logger;
     this.callbackClient = callbackClient;
 }
Example #4
0
 public MusicPlayer(
     ILogger logger,
     IMusicProviderFactory musicProviderFactory,
     IRickRollService rickRollService,
     IDataService <QueuedTrack> queuedTrackDataService,
     IAlreadyQueuedHelper alreadyQueuedHelper,
     ICallbackClient callbackClient,
     INowHelper nowHelper)
 {
     this.nowHelper              = nowHelper;
     this.callbackClient         = callbackClient;
     this.alreadyQueuedHelper    = alreadyQueuedHelper;
     this.queuedTrackDataService = queuedTrackDataService;
     this.rickRollService        = rickRollService;
     this.musicProviderFactory   = musicProviderFactory;
     this.logger         = logger;
     this.callbackClient = callbackClient;
 }
Example #5
0
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper = artistMapper;
     this.albumMapper = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }
Example #6
0
 public TrackMapper(IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }
Example #7
0
 public TrackMapper(IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }
Example #8
0
 public TrackMapper(IAlbumMapper albumMapper, IArtistMapper artistMapper, IAlreadyQueuedHelper alreadyQueuedHelper)
 {
     this.artistMapper        = artistMapper;
     this.albumMapper         = albumMapper;
     this.alreadyQueuedHelper = alreadyQueuedHelper;
 }