Update artifact id, Fix message decoding

This commit is contained in:
MrLetsplay 2023-12-11 13:26:02 +01:00
parent 9ccf4f8cf6
commit b7a6de759e
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.mrletsplay</groupId>
<artifactId>ShareClient-Core</artifactId>
<artifactId>ShareLib</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>

View File

@ -26,6 +26,10 @@ public interface Message extends SerializableObject {
case PEER_JOIN -> m = PeerJoinMessage.deserialize(dIn);
case PEER_LEAVE -> m = PeerLeaveMessage.deserialize(dIn);
case CHANGE -> m = ChangeMessage.deserialize(dIn);
case REQUEST_FULL_SYNC -> m = RequestFullSyncMessage.deserialize(dIn);
case REQUEST_CHECKSUM -> m = RequestChecksumMessage.deserialize(dIn);
case FULL_SYNC -> m = FullSyncMessage.deserialize(dIn);
case CHECKSUM -> m = ChecksumMessage.deserialize(dIn);
default -> m = new BasicMessage(type);
}