/// <summary> /// Initializes a new instance of the <see cref="PlayerTextView" /> class. /// </summary> /// <param name="playerController">The player controller.</param> /// <param name="playerStatusUpdater">The player information.</param> /// <param name="volumeStatus">The volume status.</param> public PlayerTextView(PlayerController playerController, IPlayerStatusUpdater playerStatusUpdater, IVolumeStatus volumeStatus) { this.playerController = playerController; this.playerStatusUpdater = playerStatusUpdater; this.volumeStatus = volumeStatus; this.ResetPlayerState(); }
/// <summary> /// Initializes a new instance of the <see cref="SystemActivityAggregator" /> class. /// </summary> /// <param name="playerStatusUpdater">The player status.</param> /// <param name="systemActivityAggregatorReporter">The system activity aggregator reporter.</param> public SystemActivityAggregator(IPlayerStatusUpdater playerStatusUpdater, ISystemActivityAggregatorReporter?systemActivityAggregatorReporter) { this.playerStatusUpdater = playerStatusUpdater; this.systemActivityAggregatorReporter = systemActivityAggregatorReporter; this.systemActivityAggregatorReporter?.SetSource(this); this.playerStatusUpdater.StatusChanged += this.OnPlayerStatusUpdaterStatusChanged; }