Esempio n. 1
0
        public void RateSong(PandoraSong song, PandoraRating rating)
        {
            try
            {
                Core.MusicBox.RateSong(song, rating);
                if (rating == PandoraRating.Hate && song == Core.MusicBox.CurrentSong)
                {
                    PlayNextTrack();
                }

                UpdateGUI();
            }
            catch (Exception ex)
            {
                GracefullyFail(ex);
            }
        }
Esempio n. 2
0
        public PandoraSongFeedback RateSong(PandoraSession session, PandoraStation station, PandoraSong song, PandoraRating rating, WebProxy proxy)
        {
            if (session == null || session.User == null)
            {
                throw new PandoraException("User must be logged in to make this request.");
            }

            PandoraSongFeedback feedbackObj = (PandoraSongFeedback)ExecuteRequest(new AddFeedbackRequest(session, station.Token, song.Token, rating == PandoraRating.Love), proxy);

            song.Rating = rating;

            return(feedbackObj);
        }
Esempio n. 3
0
 public PandoraSongFeedback RateSong(PandoraSession session, PandoraStation station, PandoraSong song, PandoraRating rating)
 {
     return(RateSong(session, station, song, rating, null));
 }
Esempio n. 4
0
 /// <summary>
 /// Rate the specified song. A positive or negative rating will influence future songs
 /// played from the current station.
 /// </summary>
 /// <param name="rating"></param>
 /// <param name="song"></param>
 public void RateSong(PandoraSong song, PandoraRating rating)
 {
     VerifyAndExecute(delegate {
         pandora.RateSong(Session, CurrentStation, song, rating);
     });
 }
Esempio n. 5
0
 /// <summary>
 /// Rate the specified song. A positive or negative rating will influence future songs 
 /// played from the current station.
 /// </summary>
 /// <param name="rating"></param>
 /// <param name="song"></param>
 public void RateSong(PandoraSong song, PandoraRating rating)
 {
     VerifyAndExecute(delegate {
         pandora.RateSong(Session, CurrentStation, song, rating);
     });
 }
Esempio n. 6
0
        public void RateSong(PandoraSong song, PandoraRating rating)
        {
            try {
                Core.MusicBox.RateSong(song, rating);
                if (rating == PandoraRating.Hate && song == Core.MusicBox.CurrentSong)
                    PlayNextTrack();

                UpdateGUI();
            }
            catch (Exception ex) {
                GracefullyFail(ex);
            }
        }
Esempio n. 7
0
        public PandoraSongFeedback RateSong(PandoraSession session, PandoraStation station, PandoraSong song, PandoraRating rating, WebProxy proxy)
        {
            if (session == null || session.User == null) throw new PandoraException("User must be logged in to make this request.");

            PandoraSongFeedback feedbackObj = (PandoraSongFeedback)ExecuteRequest(new AddFeedbackRequest(session, station.Token, song.Token, rating == PandoraRating.Love), proxy);
            song.Rating = rating;

            return feedbackObj;
        }
Esempio n. 8
0
 public PandoraSongFeedback RateSong(PandoraSession session, PandoraStation station, PandoraSong song, PandoraRating rating)
 {
     return RateSong(session, station, song, rating, null);
 }