Commit e098ba6e authored by legoc's avatar legoc

Starting to parse CommandZoneSyncEvent notification messages

parent bfc786a5
......@@ -123,7 +123,7 @@ public class DataChangeSubscriber {
notifyUserVariableStateChanged(NotificationMessage.UserVariableStateChanged.parseFrom(new ByteArrayInputStream(data[1])));
}
else {
System.out.println("unable to process " + NotificationMessage.Message.parseFrom(data[0]).getType());
System.out.println("Unable to process " + NotificationMessage.Message.parseFrom(data[0]).getType());
}
}
catch (IOException e) {
......
......@@ -136,12 +136,15 @@ public class ServerCommandZoneEventManager {
else if (NotificationMessage.Message.parseFrom(data[0]).getType() == fr.ill.ics.nomadserver.notification.NotificationMessage.Message.Type.ForLoopCurrentValueChanged) {
notifyForLoopCurrentValueChanged(NotificationMessage.ForLoopCurrentValueChanged.parseFrom(new ByteArrayInputStream(data[1])));
}
else if (NotificationMessage.Message.parseFrom(data[0]).getType() == fr.ill.ics.nomadserver.notification.NotificationMessage.Message.Type.CommandZoneSync) {
System.out.println("Received command zone sync event");
}
else {
System.out.println("unable to process " + NotificationMessage.Message.parseFrom(data[0]).getType());
System.out.println("Unable to process " + NotificationMessage.Message.parseFrom(data[0]).getType());
}
}
catch (IOException e) {
System.err.println("Cannot parse notification data change message");
System.err.println("Cannot parse notification server command zone message");
}
}
else {
......
......@@ -130,7 +130,7 @@ public class SurveySubscriberImpl {
notifySurveyXML(NotificationMessage.MessageXML.parseFrom(new ByteArrayInputStream(data[1])));
}
else {
System.out.println("unable to process " + NotificationMessage.Message.parseFrom(data[0]).getType());
System.out.println("Unable to process " + NotificationMessage.Message.parseFrom(data[0]).getType());
}
}
catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment