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('notify:list');

  if (fromDate != null) {
    serverCommandBuffer.write(':$fromDate');
  }
  if (toDate != null) {
    serverCommandBuffer.write(':$toDate');
  }
  if (regex != null) {
    serverCommandBuffer.write(':$regex');
  }
  return (serverCommandBuffer..write('\n')).toString();
}