/// <summary> /// Initializes a new instance of the <see cref="PlayerService" /> class. /// </summary> /// <param name="playlistSearchService">The playlist map service.</param> /// <param name="lastPlaylistService">The last playlist service.</param> /// <param name="playbackControls">The playback controls.</param> /// <param name="playerServiceReporter">The player service reporter.</param> public PlayerService( PlaylistSearchService playlistSearchService, ILastPlaylistService lastPlaylistService, IPlaybackControls playbackControls, IPlayerServiceReporter?playerServiceReporter) { this.playlistSearchService = playlistSearchService; this.lastPlaylistService = lastPlaylistService; this.playbackControls = playbackControls; this.playerServiceReporter = playerServiceReporter; this.playerServiceReporter?.SetSource(this); }
/// <summary>Initializes a new instance of the <see cref="PlayerModule"/> class.</summary> /// <param name="playlistRepository">The playlist repository.</param> /// <param name="lastPlaylistService">The last playlist service.</param> /// <param name="playbackControls">The playback controls.</param> /// <param name="playerServiceReporter">The player service reporter.</param> public PlayerModule( IPlaylistRepository playlistRepository, ILastPlaylistService lastPlaylistService, IPlaybackControls playbackControls, IPlayerServiceReporter playerServiceReporter) { this.PlayerService = new PlayerService( new PlaylistSearchService(playlistRepository), lastPlaylistService, playbackControls, playerServiceReporter); }
public TestPlayerModule(IPlaylistRepository playlistRepository, ILastPlaylistService lastPlaylistService, IPlaybackControls playbackControls, IPlayerServiceReporter playerServiceReporter) : base(playlistRepository, lastPlaylistService, playbackControls, playerServiceReporter) { }