Refine backendless share intake

This commit is contained in:
Rijad Zuzo
2026-05-18 20:33:54 +02:00
parent f655adfbea
commit 42a59e959f
37 changed files with 1467 additions and 824 deletions
@@ -97,21 +97,9 @@ class BackendGatewayFake implements BackendGateway {
@override
Future<SyncPullResult> pullChanges({String? cursor, int limit = 200}) async {
final List<ChangeEnvelope> changes = <ChangeEnvelope>[
ChangeEnvelope(
schemaVersion: 1,
entityType: 'person',
entityId: 'person-1',
op: ChangeOperation.upsert,
modifiedAt: _seedTime,
clientMutationId: 'cm-1',
payload: const <String, dynamic>{'name': 'Alex', 'importance': 5},
),
];
return SyncPullResult(
cursor: 'fake-pull-cursor-1',
changes: changes.take(limit).toList(),
cursor: cursor ?? 'fake-pull-cursor-empty',
changes: const <ChangeEnvelope>[],
);
}