parent
e14ab3e708
commit
e38307657d
1 changed files with 445 additions and 63 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/event.dart";
|
||||
import "package:nexus/models/read_receipt.dart";
|
||||
|
||||
part "paginate.freezed.dart";
|
||||
part "paginate.g.dart";
|
||||
|
|
@ -10,6 +11,9 @@ part "paginate.g.dart";
|
|||
class const Paginate({
|
||||
required final IList<Event> events,
|
||||
required final IList<Event> relatedEvents,
|
||||
|
||||
/// Read receipts for the events, by event ID.
|
||||
final IMap<String, IList<ReadReceipt>> receipts = const .empty(),
|
||||
required final bool hasMore,
|
||||
}) with _$Paginate {
|
||||
Map<String, Object?> toJson() => _$PaginateToJson(this);
|
||||
|
|
|
|||
Loading…
Reference in a new issue