Ejemplo n.º 1
0
 public SoundBoardService(IDataService<SoundBoardInfo> soundBoardDataService, ISoundBoardSettings soundBoardSettings, IStreamedPlayer player, IPathBuilder pathBuilder, INowHelper nowHelper)
 {
     this.nowHelper = nowHelper;
     this.pathBuilder = pathBuilder;
     this.player = player;
     this.soundBoardSettings = soundBoardSettings;
     this.soundBoardDataService = soundBoardDataService;
 }
Ejemplo n.º 2
0
 public SoundBoardService(IDataService <SoundBoardInfo> soundBoardDataService, ISoundBoardSettings soundBoardSettings, IStreamedPlayer player, IPathBuilder pathBuilder, INowHelper nowHelper)
 {
     this.nowHelper             = nowHelper;
     this.pathBuilder           = pathBuilder;
     this.player                = player;
     this.soundBoardSettings    = soundBoardSettings;
     this.soundBoardDataService = soundBoardDataService;
 }
Ejemplo n.º 3
0
        public SoundCloudMusicProvider(ILogger logger, IStreamedPlayer player, ISoundCloudSettings soundCloudSettings, SoundMapper.ITrackMapper trackMapper)
        {
            this.soundCloudSettings = soundCloudSettings;
            this.trackMapper        = trackMapper;
            this.player             = player;
            this.logger             = logger;

            if (IsEnabled)
            {
                token = GetToken();
            }

            player.PlaybackEnded += player_PlaybackEnded;
        }