wip
This commit is contained in:
parent
095c72f983
commit
4862bf47c7
11 changed files with 228 additions and 19 deletions
18
lib/models/read_receipt.dart
Normal file
18
lib/models/read_receipt.dart
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/epoch_date_time_converter.dart";
|
||||
part "read_receipt.freezed.dart";
|
||||
part "read_receipt.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class ReadReceipt with _$ReadReceipt {
|
||||
const factory ReadReceipt({
|
||||
String? roomId,
|
||||
required String userId,
|
||||
String? threadId,
|
||||
required String eventId,
|
||||
@EpochDateTimeConverter() required DateTime timestamp,
|
||||
}) = _ReadReceipt;
|
||||
|
||||
factory ReadReceipt.fromJson(Map<String, Object?> json) =>
|
||||
_$ReadReceiptFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue