subtracks/lib/sources/music_source.dart
austinried c900c9750a stop streaming iterables
add gonic to test servers setup
gather artist image URLs on allArtists to remove weird Future<Uri> interface for artist images
move source options around
2025-11-02 11:56:17 +09:00

17 lines
404 B
Dart

import 'models.dart';
abstract class MusicSource {
Future<void> ping();
Stream<SourceAlbum> allAlbums();
Stream<SourceArtist> allArtists();
Stream<SourcePlaylist> allPlaylists();
Stream<SourceSong> allSongs();
Stream<SourcePlaylistSong> allPlaylistSongs();
Uri streamUri(String songId);
Uri downloadUri(String songId);
Uri coverArtUri(String coverArtId, {bool thumbnail = true});
}