insertClient method
Future<void>
insertClient(
- String name,
- String nodeUrl,
- String token,
- String userId,
- String? deviceId,
- String? deviceName,
- String? prevBatch,
- String? olmAccount,
override
Implementation
@override
Future<void> insertClient(
String name,
String nodeUrl,
String token,
String userId,
String? deviceId,
String? deviceName,
String? prevBatch,
String? olmAccount) async {
await _clientBox.put('node_url', nodeUrl);
await _clientBox.put('token', token);
await _clientBox.put('user_id', userId);
await _clientBox.put('device_id', deviceId);
await _clientBox.put('device_name', deviceName);
await _clientBox.put('prev_batch', prevBatch);
await _clientBox.put('olm_account', olmAccount);
await _clientBox.put('sync_filter_id', null);
return;
}