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 UpdateAccountCommand
implements JsonRpcLocalCommand
{
15 public UpdateAccountCommand(final OutputWriter outputWriter
) {
18 public static void attachToSubparser(final Subparser subparser
) {
19 subparser
.help("Update the account attributes on the signal server.");
23 public void handleCommand(final Namespace ns
, final Manager m
) throws CommandException
{
25 m
.updateAccountAttributes();
26 } catch (IOException e
) {
27 throw new IOErrorException("UpdateAccount error: " + e
.getMessage());