GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit b6665e84 authored by Julian Hochstetter's avatar Julian Hochstetter

remove unneeded inner class ARSnovaClientOperations

parent 10a7b5aa
......@@ -178,8 +178,7 @@ public class ARSnovaSocketIOServer {
for (SocketIOClient client : server.getAllClients()) {
// Find the client whose feedback has been deleted and send a message.
if (client.getSessionId().compareTo(connectionId) == 0) {
ClientOperations clientOp = new ARSnovaClientOperations(client);
clientOp.sendEvent("removedFeedback", arsSessions);
client.sendEvent("removedFeedback", arsSessions);
break;
}
}
......@@ -202,59 +201,4 @@ public class ARSnovaSocketIOServer {
server.getBroadcastOperations().sendEvent("updateFeedback", fb.getValues());
}
}
private static class ARSnovaClientOperations implements ClientOperations {
private final SocketIOClient client;
public ARSnovaClientOperations(SocketIOClient client) {
this.client = client;
}
@Override
public void disconnect() {
throw new NotImplementedException();
}
@Override
public void send(Packet arg0) {
throw new NotImplementedException();
}
@Override
public void send(Packet arg0, AckCallback arg1) {
throw new NotImplementedException();
}
@Override
public void sendEvent(String eventName, Object data) {
client.sendEvent(eventName, data);
}
@Override
public void sendEvent(String arg0, Object arg1, AckCallback arg2) {
throw new NotImplementedException();
}
@Override
public void sendJsonObject(Object arg0) {
throw new NotImplementedException();
}
@Override
public void sendJsonObject(Object arg0, AckCallback arg1) {
throw new NotImplementedException();
}
@Override
public void sendMessage(String arg0) {
throw new NotImplementedException();
}
@Override
public void sendMessage(String arg0, AckCallback arg1) {
throw new NotImplementedException();
}
}
}
\ No newline at end of file
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