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

Add project update listener to web api

parent 24913221
Branches
Tags
No related merge requests found
...@@ -4,12 +4,13 @@ import de.thecodelabs.logger.Logger ...@@ -4,12 +4,13 @@ import de.thecodelabs.logger.Logger
import de.thecodelabs.plugins.{Plugin, PluginDescriptor} import de.thecodelabs.plugins.{Plugin, PluginDescriptor}
import de.tobias.playpad.PlayPadPlugin import de.tobias.playpad.PlayPadPlugin
import de.tobias.playpad.plugin.api.websocket.WebSocketHandler import de.tobias.playpad.plugin.api.websocket.WebSocketHandler
import de.tobias.playpad.plugin.api.websocket.listener.PadStatusListener import de.tobias.playpad.plugin.api.websocket.listener.{PadStatusListener, ProjectListener}
import spark.Spark import spark.Spark
class WebApiPlugin extends Plugin { class WebApiPlugin extends Plugin {
override def startup(pluginDescriptor: PluginDescriptor): Unit = { override def startup(pluginDescriptor: PluginDescriptor): Unit = {
PlayPadPlugin.getInstance().addPadListener(new PadStatusListener) PlayPadPlugin.getInstance().addPadListener(new PadStatusListener)
PlayPadPlugin.getInstance().addGlobalListener(new ProjectListener)
Logger.debug("Enable Web API Plugin") Logger.debug("Enable Web API Plugin")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment