Add PlainTextWriter interface

This commit is contained in:
AsamK 2021-08-09 19:02:24 +02:00
parent 641dc7577c
commit 15e8029715
16 changed files with 69 additions and 66 deletions

View file

@ -4,7 +4,7 @@ import net.sourceforge.argparse4j.inf.Namespace;
import net.sourceforge.argparse4j.inf.Subparser;
import org.asamk.signal.OutputWriter;
import org.asamk.signal.PlainTextWriterImpl;
import org.asamk.signal.PlainTextWriter;
import org.asamk.signal.commands.exceptions.CommandException;
import org.asamk.signal.commands.exceptions.IOErrorException;
import org.asamk.signal.commands.exceptions.UnexpectedErrorException;
@ -49,7 +49,7 @@ public class JoinGroupCommand implements LocalCommand {
}
try {
final var writer = (PlainTextWriterImpl) outputWriter;
final var writer = (PlainTextWriter) outputWriter;
final var results = m.joinGroup(linkUrl);
var newGroupId = results.first();