Commit 710e5e73 authored by Benedikt Geißler's avatar Benedikt Geißler 🐸

Rename 'receivedMessage()' to 'receiveMessage()'

parent 745edbdc
......@@ -67,7 +67,7 @@ public class CwClient implements IClient, ITcpListener {
}
@Override
public void receivedMessage(String sessionId, String data) {
public void receiveMessage(String sessionId, String data) {
CwMessageType type = interpreter.getMessageType(data);
if (type == CwMessageType.LoginOk) {
......
......@@ -68,7 +68,7 @@ public class CwServer implements IServer, ITcpListener {
}
@Override
public void receivedMessage(String sessionId, String data) {
public void receiveMessage(String sessionId, String data) {
CwMessageType type = interpreter.getMessageType(data);
if (type == CwMessageType.Login) {
......
......@@ -4,5 +4,5 @@ package gone.lib.network.contracts;
* Created by Winfried on 22.09.2016.
*/
public interface ITcpListener {
void receivedMessage(String sessionId, String data);
void receiveMessage(String sessionId, String data);
}
......@@ -71,9 +71,9 @@ public class TcpClientModule implements ITcpClientModule, ITcpListener {
}
@Override
public void receivedMessage(String sessionId, String data) {
public void receiveMessage(String sessionId, String data) {
for (ITcpListener listener: listeners) {
listener.receivedMessage(sessionId, data);
listener.receiveMessage(sessionId, data);
}
}
}
\ No newline at end of file
......@@ -44,7 +44,7 @@ public class TcpReceiveMessage implements Runnable {
while (!line.equals(NetworkConstants.FINISHINGLINE));
for (ITcpListener listener : listeners) {
listener.receivedMessage(this.sessionId, clientData.toString());
listener.receiveMessage(this.sessionId, clientData.toString());
}
}
} catch (Exception exception) {
......
......@@ -76,9 +76,9 @@ public class TcpServerModule implements ITcpServerModule, ITcpServerAccepted, IT
}
@Override
public void receivedMessage(String sessionId, String data) {
public void receiveMessage(String sessionId, String data) {
for (ITcpListener listener: listeners) {
listener.receivedMessage(sessionId, data);
listener.receiveMessage(sessionId, data);
}
}
}
\ No newline at end of file
......@@ -21,7 +21,7 @@ public class ClientLoginTest {
}
@Override
public void receivedMessage(String sessionId, String data) {
public void receiveMessage(String sessionId, String data) {
IncomingMessagesInterpreter interpreter = new IncomingMessagesInterpreter();
receivedLogin = interpreter.getMessageType(data) == CwMessageType.Login;
}
......
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