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); } }
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); }
public PandoraSongFeedback RateSong(PandoraSession session, PandoraStation station, PandoraSong song, PandoraRating rating) { return(RateSong(session, station, song, rating, null)); }
/// <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); }); }
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); } }
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; }
public PandoraSongFeedback RateSong(PandoraSession session, PandoraStation station, PandoraSong song, PandoraRating rating) { return RateSong(session, station, song, rating, null); }