-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- parallelized many stuff like retrieving the folder paths, updating the tracks, ... - elevate the usage of SQLite to prevent generation of a lot of objects which need to be garbage collected - added TerminationService to support cancelling of long-running tasks as fast as possible, especially upon termination - activated foreign keys in SQLite database; QueuedTrack now just references Track instead of copying the path data
- Loading branch information
1 parent
cd185cc
commit b8578d0
Showing
25 changed files
with
581 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using Dopamine.Data.Entities; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
namespace Dopamine.Data.Repositories | ||
{ | ||
public interface IQueuedTrackRepository | ||
{ | ||
Task<List<QueuedTrack>> GetSavedQueuedTracksAsync(); | ||
Task SaveQueuedTracksAsync(IList<QueuedTrack> tracks); | ||
Task<QueuedTrack> GetPlayingTrackAsync(); | ||
Task<List<Track>> GetSavedQueuedTracksAsync(); | ||
Task SaveQueuedTracksAsync(IList<Track> tracks, long? currentTrackId, long progressSeconds); | ||
Task<Tuple<Track, long>> GetPlayingTrackAsync(); | ||
} | ||
} |
Oops, something went wrong.