Skip to content

High performance self-hosted photo and video management solution.

523 B
Raw Blame
import 'package:immich_mobile/domain/models/asset/base_asset.model.dart';

import '../../utils.dart';

class LocalAssetFactory {
  static LocalAsset create({String? id, String? name, String? remoteId}) {
    final assetId = TestUtils.uuid(id);

    return LocalAsset(
      id: assetId,
      name: name ?? 'local_$assetId.jpg',
      remoteId: remoteId,
      type: AssetType.image,
      createdAt: TestUtils.yesterday(),
      updatedAt: TestUtils.now(),
      playbackStyle: .image,
      isEdited: false,
    );
  }
}