2023-02-06 09:13:32 +02:00
|
|
|
import 'package:immich_mobile/shared/models/album.dart';
|
2022-10-19 22:03:54 +02:00
|
|
|
import 'package:immich_mobile/shared/services/json_cache.dart';
|
2022-10-17 14:53:27 +02:00
|
|
|
|
2023-03-04 00:38:30 +02:00
|
|
|
@Deprecated("only kept to remove its files after migration")
|
|
|
|
class _BaseAlbumCacheService extends JsonCache<List<Album>> {
|
|
|
|
_BaseAlbumCacheService(super.cacheFileName);
|
2022-10-17 14:53:27 +02:00
|
|
|
|
|
|
|
@override
|
2023-03-04 00:38:30 +02:00
|
|
|
void put(List<Album> data) {}
|
2022-10-17 14:53:27 +02:00
|
|
|
|
|
|
|
@override
|
2023-03-04 00:38:30 +02:00
|
|
|
Future<List<Album>?> get() => Future.value(null);
|
2022-10-18 14:06:35 +02:00
|
|
|
}
|
|
|
|
|
2023-03-04 00:38:30 +02:00
|
|
|
@Deprecated("only kept to remove its files after migration")
|
|
|
|
class AlbumCacheService extends _BaseAlbumCacheService {
|
2022-10-18 14:06:35 +02:00
|
|
|
AlbumCacheService() : super("album_cache");
|
|
|
|
}
|
2022-10-17 14:53:27 +02:00
|
|
|
|
2023-03-04 00:38:30 +02:00
|
|
|
@Deprecated("only kept to remove its files after migration")
|
|
|
|
class SharedAlbumCacheService extends _BaseAlbumCacheService {
|
2022-10-18 14:06:35 +02:00
|
|
|
SharedAlbumCacheService() : super("shared_album_cache");
|
2022-10-17 14:53:27 +02:00
|
|
|
}
|