Skip to content
Snippets Groups Projects
Commit a79ee73b authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

#174 - Send requests on remote trigger

parent a3acd3e0
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ package de.tobias.playpad.plugin.api.trigger; ...@@ -3,6 +3,7 @@ package de.tobias.playpad.plugin.api.trigger;
import de.thecodelabs.utils.list.UniqList; import de.thecodelabs.utils.list.UniqList;
import de.tobias.playpad.pad.Pad; import de.tobias.playpad.pad.Pad;
import de.tobias.playpad.pad.PadStatus; import de.tobias.playpad.pad.PadStatus;
import de.tobias.playpad.plugin.api.WebApiPlugin$;
import de.tobias.playpad.profile.Profile; import de.tobias.playpad.profile.Profile;
import de.tobias.playpad.project.Project; import de.tobias.playpad.project.Project;
import de.tobias.playpad.tigger.TriggerItem; import de.tobias.playpad.tigger.TriggerItem;
...@@ -47,7 +48,11 @@ public class RemoteTriggerItem extends TriggerItem { ...@@ -47,7 +48,11 @@ public class RemoteTriggerItem extends TriggerItem {
@Override @Override
public void performAction(Pad pad, Project project, IMainViewController controller, Profile profile) { public void performAction(Pad pad, Project project, IMainViewController controller, Profile profile) {
WebApiPlugin$.MODULE$.getConnection(serverId).ifPresent(client -> {
for (UUID uuid : uuids) {
client.setPadStatus(uuid, newStatus);
}
});
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment