diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-30 13:20:30 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-30 13:20:30 -0700 |
commit | e6cfc1f039d60c36ba95ecab7f8a4db779ce8a73 (patch) | |
tree | c566b4bc43286386f82cda36f1a2d04d30251648 /src | |
parent | 1a9bbcd97cafd8f5ba22f40a79f61abce440e47d (diff) | |
download | dsub-e6cfc1f039d60c36ba95ecab7f8a4db779ce8a73.tar.gz dsub-e6cfc1f039d60c36ba95ecab7f8a4db779ce8a73.tar.bz2 dsub-e6cfc1f039d60c36ba95ecab7f8a4db779ce8a73.zip |
Update service to use parent in setRating
Diffstat (limited to 'src')
4 files changed, 5 insertions, 4 deletions
diff --git a/src/github/daneren2005/dsub/service/CachedMusicService.java b/src/github/daneren2005/dsub/service/CachedMusicService.java index 01e50e95..3801da67 100644 --- a/src/github/daneren2005/dsub/service/CachedMusicService.java +++ b/src/github/daneren2005/dsub/service/CachedMusicService.java @@ -1252,7 +1252,8 @@ public class CachedMusicService implements MusicService { return GenericSongUpdater.this.checkResult(check); } - @Override void updateResult(List<Entry> objects, Entry result) { + @Override + public void updateResult(List<Entry> objects, Entry result) { GenericSongUpdater.this.updateResult(result); } }.execute(); diff --git a/src/github/daneren2005/dsub/service/MusicService.java b/src/github/daneren2005/dsub/service/MusicService.java index d70f1c46..28b8bbfe 100644 --- a/src/github/daneren2005/dsub/service/MusicService.java +++ b/src/github/daneren2005/dsub/service/MusicService.java @@ -152,7 +152,7 @@ public interface MusicService { void deletePodcastEpisode(String id, String parent, ProgressListener progressListener, Context context) throws Exception; - void setRating(String id, int rating, Context context, ProgressListener progressListener) throws Exception; + void setRating(String id, String parent, int rating, Context context, ProgressListener progressListener) throws Exception; MusicDirectory getBookmarks(boolean refresh, Context context, ProgressListener progressListener) throws Exception; diff --git a/src/github/daneren2005/dsub/service/OfflineMusicService.java b/src/github/daneren2005/dsub/service/OfflineMusicService.java index 788057d2..6ac21c35 100644 --- a/src/github/daneren2005/dsub/service/OfflineMusicService.java +++ b/src/github/daneren2005/dsub/service/OfflineMusicService.java @@ -737,7 +737,7 @@ public class OfflineMusicService implements MusicService { } @Override - public void setRating(String id, int rating, Context context, ProgressListener progressListener) throws Exception { + public void setRating(String id, String parent, int rating, Context context, ProgressListener progressListener) throws Exception { throw new OfflineException(ERRORMSG); } diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java index d6715e8c..4ec487a0 100644 --- a/src/github/daneren2005/dsub/service/RESTMusicService.java +++ b/src/github/daneren2005/dsub/service/RESTMusicService.java @@ -1126,7 +1126,7 @@ public class RESTMusicService implements MusicService { } @Override - public void setRating(String id, int rating, Context context, ProgressListener progressListener) throws Exception { + public void setRating(String id, String parent, int rating, Context context, ProgressListener progressListener) throws Exception { checkServerVersion(context, "1.6", "Setting ratings not supported."); Reader reader = getReader(context, progressListener, "setRating", null, Arrays.asList("id", "rating"), Arrays.<Object>asList(id, rating)); |