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('plookup:');
  if (bypassCache == true) {
    serverCommandBuffer.write('bypassCache:$bypassCache:');
  }
  if (operation != null) {
    serverCommandBuffer.write('$operation:');
  }
  serverCommandBuffer.write(atKey.key);
  return (serverCommandBuffer
        ..write('${VerbUtil.formatAtSign(atKey.sharedBy)}\n'))
      .toString();
}