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:status:');
  if (notificationId.isNullOrEmpty) {
    throw InvalidAtKeyException('NotificationId cannot be null or empty');
  }
  serverCommandBuffer.write('$notificationId\n');
  return serverCommandBuffer.toString();
}