ente/mobile/lib/models/memory.dart
2024-03-01 12:25:37 +05:30

20 lines
320 B
Dart

import 'package:photos/models/file/file.dart';
class Memory {
final EnteFile file;
int _seenTime;
Memory(this.file, this._seenTime);
bool isSeen() {
return _seenTime != -1;
}
int seenTime() {
return _seenTime;
}
void markSeen() {
_seenTime = DateTime.now().microsecondsSinceEpoch;
}
}