buildCommand method

  1. @override
String buildCommand()
override

Build the @ command to be sent to remote secondary for execution.

Implementation

@override
String buildCommand() {
  StringBuffer serverCommandBuffer = StringBuffer('from:$atSign');
  if (clientConfig.isNotEmpty) {
    var clientConfigStr = jsonEncode(clientConfig);
    serverCommandBuffer
        .write(':${AtConstants.clientConfig}:$clientConfigStr');
  }
  serverCommandBuffer.write('\n');
  return serverCommandBuffer.toString();
}