mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 23:02:43 +01:00
music source and client for subsonic
test fixture setup for navidrome
This commit is contained in:
17
lib/sources/music_source.dart
Normal file
17
lib/sources/music_source.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'models.dart';
|
||||
|
||||
abstract class MusicSource {
|
||||
Future<void> ping();
|
||||
|
||||
Stream<Iterable<SourceAlbum>> allAlbums();
|
||||
Stream<Iterable<SourceArtist>> allArtists();
|
||||
Stream<Iterable<SourcePlaylist>> allPlaylists();
|
||||
Stream<Iterable<SourceSong>> allSongs();
|
||||
Stream<Iterable<SourcePlaylistSong>> allPlaylistSongs();
|
||||
|
||||
Uri streamUri(String songId);
|
||||
Uri downloadUri(String songId);
|
||||
|
||||
Uri coverArtUri(String coverArtId, {bool thumbnail = true});
|
||||
Future<Uri?> artistArtUri(String artistId, {bool thumbnail = true});
|
||||
}
|
||||
Reference in New Issue
Block a user