more refactors

This commit is contained in:
shenlong-tanwen
2024-10-20 16:50:34 +05:30
parent 7ea21d636f
commit 8f47645cdb
35 changed files with 399 additions and 83 deletions
@@ -11,4 +11,7 @@ abstract interface class IAlbumRepository {
/// Removes album with the given [id]
FutureOr<void> deleteId(int id);
/// Removes all albums
FutureOr<void> deleteAll();
}
@@ -14,4 +14,7 @@ abstract interface class IAlbumToAssetRepository {
/// Removes album with the given [albumId]
FutureOr<void> deleteAlbumId(int albumId);
/// Removes all album to asset mappings
FutureOr<void> deleteAll();
}
@@ -8,4 +8,7 @@ abstract interface class IAlbumETagRepository {
/// Fetches the album etag for the given [albumId]
FutureOr<AlbumETag?> get(int albumId);
/// Removes all album eTags
FutureOr<void> deleteAll();
}
@@ -8,4 +8,7 @@ abstract interface class IUserRepository {
/// Fetches user
FutureOr<User?> getForId(String userId);
/// Removes all users
FutureOr<void> deleteAll();
}