chore: remove drift prefix naming

This commit is contained in:
Yaros
2026-04-13 17:28:05 +02:00
parent 4de5837ff9
commit 0c985ec1e8
6 changed files with 22 additions and 24 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
class DriftOcr {
class Ocr {
final String id;
final String assetId;
final double x1;
@@ -14,7 +14,7 @@ class DriftOcr {
final String text;
final bool isVisible;
const DriftOcr({
const Ocr({
required this.id,
required this.assetId,
required this.x1,
@@ -31,7 +31,7 @@ class DriftOcr {
required this.isVisible,
});
DriftOcr copyWith({
Ocr copyWith({
String? id,
String? assetId,
double? x1,
@@ -47,7 +47,7 @@ class DriftOcr {
String? text,
bool? isVisible,
}) {
return DriftOcr(
return Ocr(
id: id ?? this.id,
assetId: assetId ?? this.assetId,
x1: x1 ?? this.x1,
@@ -89,7 +89,7 @@ class DriftOcr {
bool operator ==(Object other) {
if (identical(this, other)) return true;
return other is DriftOcr &&
return other is Ocr &&
other.id == id &&
other.assetId == assetId &&
other.x1 == x1 &&
+4 -4
View File
@@ -1,12 +1,12 @@
import 'package:immich_mobile/domain/models/ocr.model.dart';
import 'package:immich_mobile/infrastructure/repositories/ocr.repository.dart';
class DriftOcrService {
final DriftOcrRepository _repository;
class OcrService {
final OcrRepository _repository;
const DriftOcrService(this._repository);
const OcrService(this._repository);
Future<List<DriftOcr>?> get(String assetId) {
Future<List<Ocr>?> get(String assetId) {
return _repository.get(assetId);
}
}