mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	* feat(mobile): album view sort order * feat: add error message * refactor(mobile): album page (#14659) * refactor album page * update lint rule * const record * fix: updating sort order when pull to refresh --------- Co-authored-by: Alex <alex.tran1502@gmail.com> * Move sort toggle button to bottom sheet menu * chore: revert multiselectgrid loading status * chore: revert multiselectgrid loading status --------- Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			1002 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1002 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:immich_mobile/constants/enums.dart';
 | |
| import 'package:immich_mobile/entities/album.entity.dart';
 | |
| 
 | |
| abstract interface class IAlbumApiRepository {
 | |
|   Future<Album> get(String id);
 | |
| 
 | |
|   Future<List<Album>> getAll({bool? shared});
 | |
| 
 | |
|   Future<Album> create(
 | |
|     String name, {
 | |
|     required Iterable<String> assetIds,
 | |
|     Iterable<String> sharedUserIds = const [],
 | |
|   });
 | |
| 
 | |
|   Future<Album> update(
 | |
|     String albumId, {
 | |
|     String? name,
 | |
|     String? thumbnailAssetId,
 | |
|     String? description,
 | |
|     bool? activityEnabled,
 | |
|     SortOrder? sortOrder,
 | |
|   });
 | |
| 
 | |
|   Future<void> delete(String albumId);
 | |
| 
 | |
|   Future<({List<String> added, List<String> duplicates})> addAssets(
 | |
|     String albumId,
 | |
|     Iterable<String> assetIds,
 | |
|   );
 | |
| 
 | |
|   Future<({List<String> removed, List<String> failed})> removeAssets(
 | |
|     String albumId,
 | |
|     Iterable<String> assetIds,
 | |
|   );
 | |
| 
 | |
|   Future<Album> addUsers(
 | |
|     String albumId,
 | |
|     Iterable<String> userIds,
 | |
|   );
 | |
| 
 | |
|   Future<void> removeUser(String albumId, {required String userId});
 | |
| }
 |