/// <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); }
/// <summary> /// Initializes a new instance of the <see cref="PlayerController" /> class. /// </summary> /// <param name="interactionController">The input manager.</param> /// <param name="playerService">The player service.</param> /// <param name="playbackControls">The playback controls.</param> /// <param name="menuRequester">The menu requester.</param> /// <param name="playerControllerReporter">The player controller reporter.</param> public PlayerController( IInteractionController interactionController, IPlayerService playerService, IPlaybackControls playbackControls, IMenuRequester menuRequester, IPlayerControllerReporter?playerControllerReporter) { this.interactionController = interactionController; this.playerService = playerService; this.playbackControls = playbackControls; this.menuRequester = menuRequester; this.playerControllerReporter = playerControllerReporter; this.interactionController.KeyInputEvent.Register(this, this.OnInteractionControllerKeyInput); this.interactionController.TagInputEvent.Register(this.OnInteractionControllerTagDetected); this.playerControllerReporter?.SetSource(this); }
public TestPlayerModule(IPlaylistRepository playlistRepository, ILastPlaylistService lastPlaylistService, IPlaybackControls playbackControls, IPlayerServiceReporter playerServiceReporter) : base(playlistRepository, lastPlaylistService, playbackControls, playerServiceReporter) { }