예제 #1
0
 public SpotifyPlayer(SpotifySession session,
                      ISpotifyDevice device,
                      uint initialVolume,
                      int volumeSteps)
 {
     _session    = session;
     this.events = new EventsDispatcher(this);
     Device      = device;
     InitState(initialVolume, volumeSteps);
     Current = this;
 }
예제 #2
0
        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");
        }
예제 #3
0
 public EventsDispatcher(
     [NotNull] SpotifyPlayer player)
 {
     //  metadataPipe = new MetadataPipe(conf);
     _player = player;
 }