diff options
Diffstat (limited to 'same')
-rw-r--r-- | same/src/main/java/com/orbekk/same/Client.java | 2 | ||||
-rw-r--r-- | same/src/main/java/com/orbekk/same/StateChangedListener.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/same/src/main/java/com/orbekk/same/Client.java b/same/src/main/java/com/orbekk/same/Client.java index 2d77434..4c03f31 100644 --- a/same/src/main/java/com/orbekk/same/Client.java +++ b/same/src/main/java/com/orbekk/same/Client.java @@ -54,7 +54,7 @@ public class Client implements DiscoveryListener { boolean status = state.update(component, data, revision); if (status) { if (stateListener != null) { - stateListener.stateChanged(component, data); + stateListener.stateChanged(state.getComponent(component)); } } else { logger.warn("Ignoring update: {}", diff --git a/same/src/main/java/com/orbekk/same/StateChangedListener.java b/same/src/main/java/com/orbekk/same/StateChangedListener.java index deb9369..3c72e7f 100644 --- a/same/src/main/java/com/orbekk/same/StateChangedListener.java +++ b/same/src/main/java/com/orbekk/same/StateChangedListener.java @@ -1,5 +1,5 @@ package com.orbekk.same; public interface StateChangedListener { - void stateChanged(String id, String data); + void stateChanged(State.Component component); } |