mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
* refactor: partner-page * cleanup --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
21 lines
488 B
Dart
21 lines
488 B
Dart
import 'package:immich_mobile/domain/models/asset/base_asset.model.dart';
|
|
|
|
import '../../utils.dart';
|
|
|
|
class LocalAssetFactory {
|
|
const LocalAssetFactory();
|
|
|
|
static LocalAsset create({String? id, String? name}) {
|
|
id = TestUtils.uuid(id);
|
|
|
|
return LocalAsset(
|
|
id: id,
|
|
name: name ?? 'local_$id.jpg',
|
|
type: AssetType.image,
|
|
createdAt: TestUtils.yesterday(),
|
|
updatedAt: TestUtils.now(),
|
|
playbackStyle: .image,
|
|
isEdited: false,
|
|
);
|
|
}
|
|
}
|