1 package org
.asamk
.signal
.commands
;
3 import net
.sourceforge
.argparse4j
.inf
.Namespace
;
4 import net
.sourceforge
.argparse4j
.inf
.Subparser
;
6 import org
.asamk
.signal
.OutputWriter
;
7 import org
.asamk
.signal
.commands
.exceptions
.CommandException
;
8 import org
.asamk
.signal
.commands
.exceptions
.IOErrorException
;
9 import org
.asamk
.signal
.manager
.Manager
;
11 import java
.io
.IOException
;
13 public class SendContactsCommand
implements JsonRpcLocalCommand
{
16 public String
getName() {
17 return "sendContacts";
21 public void attachToSubparser(final Subparser subparser
) {
22 subparser
.help("Send a synchronization message with the local contacts list to all linked devices.");
26 public void handleCommand(
27 final Namespace ns
, final Manager m
, final OutputWriter outputWriter
28 ) throws CommandException
{
31 } catch (IOException e
) {
32 throw new IOErrorException("SendContacts error: " + e
.getMessage());