mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-26 16:37:58 +01:00
Consistently throw Exeception in OfflineMusicService
This commit is contained in:
parent
cebbb39caf
commit
e55d894f45
@ -787,54 +787,48 @@ public class OfflineMusicService implements MusicService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MusicDirectory getAlbumList2(String type, int size, int offset, String musicFolderId) {
|
public MusicDirectory getAlbumList2(String type, int size, int offset, String musicFolderId) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getAlbumList2 was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getAlbumList2 was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getVideoUrl(String id, boolean useFlash) {
|
public String getVideoUrl(String id, boolean useFlash) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getVideoUrl was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getVideoUrl was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ChatMessage> getChatMessages(Long since) {
|
public List<ChatMessage> getChatMessages(Long since) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getChatMessages was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getChatMessages was called but it isn't available");
|
||||||
return null;
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addChatMessage(String message) throws OfflineException {
|
||||||
|
throw new OfflineException("OfflineMusicService.addChatMessage was called but it isn't available");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addChatMessage(String message) {
|
public List<Bookmark> getBookmarks() throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.addChatMessage was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getBookmarks was called but it isn't available");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Bookmark> getBookmarks() {
|
public void deleteBookmark(String id) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getBookmarks was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.deleteBookmark was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteBookmark(String id) {
|
public void createBookmark(String id, int position) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.deleteBookmark was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.createBookmark was called but it isn't available");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void createBookmark(String id, int position) {
|
public MusicDirectory getVideos(boolean refresh) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.createBookmark was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getVideos was called but it isn't available");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MusicDirectory getVideos(boolean refresh) {
|
public SearchResult getStarred2() throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getVideos was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getStarred2 was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public SearchResult getStarred2() {
|
|
||||||
Timber.w("OfflineMusicService.getStarred2 was called but it isn't available");
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -847,43 +841,37 @@ public class OfflineMusicService implements MusicService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Indexes getArtists(boolean refresh) {
|
public Indexes getArtists(boolean refresh) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getArtists was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getArtists was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MusicDirectory getArtist(String id, String name, boolean refresh) {
|
public MusicDirectory getArtist(String id, String name, boolean refresh) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getArtist was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getArtist was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MusicDirectory getAlbum(String id, String name, boolean refresh) {
|
public MusicDirectory getAlbum(String id, String name, boolean refresh) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getAlbum was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getAlbum was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MusicDirectory getPodcastEpisodes(String podcastChannelId) {
|
public MusicDirectory getPodcastEpisodes(String podcastChannelId) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getPodcastEpisodes was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getPodcastEpisodes was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Pair<InputStream, Boolean> getDownloadInputStream(MusicDirectory.Entry song, long offset, int maxBitrate) {
|
public Pair<InputStream, Boolean> getDownloadInputStream(MusicDirectory.Entry song, long offset, int maxBitrate) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getDownloadInputStream was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getDownloadInputStream was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setRating(String id, int rating) {
|
public void setRating(String id, int rating) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.setRating was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.setRating was called but it isn't available");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PodcastsChannel> getPodcastsChannels(boolean refresh) {
|
public List<PodcastsChannel> getPodcastsChannels(boolean refresh) throws OfflineException {
|
||||||
Timber.w("OfflineMusicService.getPodcastsChannels was called but it isn't available");
|
throw new OfflineException("OfflineMusicService.getPodcastsChannels was called but it isn't available");
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user