mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 19:10:38 +00:00
parent
a3f7de89f1
commit
ac815f7598
5 changed files with 18 additions and 8 deletions
|
@ -34,6 +34,9 @@ public class FinishLinkCommand implements JsonRpcMultiCommand<FinishLinkCommand.
|
|||
public void handleCommand(
|
||||
final FinishLinkParams request, final MultiAccountManager m, final JsonWriter jsonWriter
|
||||
) throws CommandException {
|
||||
if (request.deviceLinkUri() == null) {
|
||||
throw new UserErrorException("Missing deviceLinkUri.");
|
||||
}
|
||||
final URI deviceLinkUri;
|
||||
try {
|
||||
deviceLinkUri = new URI(request.deviceLinkUri());
|
||||
|
@ -71,7 +74,7 @@ public class FinishLinkCommand implements JsonRpcMultiCommand<FinishLinkCommand.
|
|||
jsonWriter.write(new JsonFinishLink(number));
|
||||
}
|
||||
|
||||
record FinishLinkParams(String deviceLinkUri, String deviceName) {}
|
||||
public record FinishLinkParams(String deviceLinkUri, String deviceName) {}
|
||||
|
||||
private record JsonFinishLink(String number) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue