public SpotifyPlayer(SpotifySession session, ISpotifyDevice device, uint initialVolume, int volumeSteps) { _session = session; this.events = new EventsDispatcher(this); Device = device; InitState(initialVolume, volumeSteps); Current = this; }
public SpotifyState( SpotifySession session, SpotifyPlayer player, uint initialVolume, int volumeSteps) { Session = session; this._player = player; this.SpotifyDevice = new DeviceStateHandler(session, initialVolume, volumeSteps); this.ConnectState = InitState(); SpotifyDevice.AddListener(this); session.Dealer().AddMessageListener(this, "spotify:user:attributes:update", "hm://playlist/", "hm://collection/collection/" + session.Username + "/json"); }
public EventsDispatcher( [NotNull] SpotifyPlayer player) { // metadataPipe = new MetadataPipe(conf); _player = player; }