X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/e508fc50e9d9efcc9259897c27ed9ba13d19de42..8e8eed7b061f1ed47cf9e30abb5e29ee08e3a3dc:/src/main/java/org/asamk/signal/commands/Commands.java diff --git a/src/main/java/org/asamk/signal/commands/Commands.java b/src/main/java/org/asamk/signal/commands/Commands.java index aa53d339..c79ba239 100644 --- a/src/main/java/org/asamk/signal/commands/Commands.java +++ b/src/main/java/org/asamk/signal/commands/Commands.java @@ -9,26 +9,34 @@ public class Commands { static { addCommand("addDevice", new AddDeviceCommand()); + addCommand("block", new BlockCommand()); addCommand("daemon", new DaemonCommand()); + addCommand("getUserStatus", new GetUserStatusCommand()); addCommand("link", new LinkCommand()); addCommand("listContacts", new ListContactsCommand()); addCommand("listDevices", new ListDevicesCommand()); addCommand("listGroups", new ListGroupsCommand()); addCommand("listIdentities", new ListIdentitiesCommand()); + addCommand("joinGroup", new JoinGroupCommand()); addCommand("quitGroup", new QuitGroupCommand()); addCommand("receive", new ReceiveCommand()); addCommand("register", new RegisterCommand()); addCommand("removeDevice", new RemoveDeviceCommand()); + addCommand("remoteDelete", new RemoteDeleteCommand()); addCommand("removePin", new RemovePinCommand()); addCommand("send", new SendCommand()); addCommand("sendContacts", new SendContactsCommand()); - addCommand("updateContact", new UpdateContactCommand()); + addCommand("sendReaction", new SendReactionCommand()); + addCommand("sendSyncRequest", new SendSyncRequestCommand()); addCommand("setPin", new SetPinCommand()); addCommand("trust", new TrustCommand()); + addCommand("unblock", new UnblockCommand()); addCommand("unregister", new UnregisterCommand()); addCommand("updateAccount", new UpdateAccountCommand()); + addCommand("updateContact", new UpdateContactCommand()); addCommand("updateGroup", new UpdateGroupCommand()); addCommand("updateProfile", new UpdateProfileCommand()); + addCommand("uploadStickerPack", new UploadStickerPackCommand()); addCommand("verify", new VerifyCommand()); } @@ -36,6 +44,13 @@ public class Commands { return commands; } + public static Command getCommand(String commandKey) { + if (!commands.containsKey(commandKey)) { + return null; + } + return commands.get(commandKey); + } + private static void addCommand(String name, Command command) { commands.put(name, command); }