buildCommand method
Build the @ command to be sent to remote secondary for execution.
Implementation
@override
String buildCommand() {
var command = 'notify:fetch:';
try {
if (notificationId.isEmpty) {
throw InvalidSyntaxException(
'Notification-id is empty. Notification-id is mandatory');
}
} on Error {
throw InvalidSyntaxException(
'Notification-id is not set. Notification-id is mandatory');
}
command += '$notificationId\n';
return command;
}