Refine backendless share intake
This commit is contained in:
@@ -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>[],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user