fix: removed checksum from MessageStructure
This commit is contained in:
parent
a4c510279a
commit
65c33d886c
@ -16,9 +16,6 @@ public class MessageStructure {
|
||||
/** The list of {@link Event}s sent inside the message. */
|
||||
public Event[] messages;
|
||||
|
||||
/** The checksum of the current game state at the time the message was sent. This is legacy (or optional). */
|
||||
public int checksum;
|
||||
|
||||
/** The type of the custom content sent with the message. */
|
||||
public String customContentType;
|
||||
|
||||
@ -30,12 +27,12 @@ public class MessageStructure {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
MessageStructure that = (MessageStructure) o;
|
||||
return checksum == that.checksum && messageType == that.messageType && Arrays.equals(messages, that.messages) && Objects.equals(customContentType, that.customContentType) && Objects.equals(customContent, that.customContent);
|
||||
return messageType == that.messageType && Arrays.equals(messages, that.messages) && Objects.equals(customContentType, that.customContentType) && Objects.equals(customContent, that.customContent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = Objects.hash(messageType, checksum, customContentType, customContent);
|
||||
int result = Objects.hash(messageType, customContentType, customContent);
|
||||
result = 31 * result + Arrays.hashCode(messages);
|
||||
return result;
|
||||
}
|
||||
@ -45,7 +42,6 @@ public class MessageStructure {
|
||||
return "MessageStructure{" +
|
||||
"messageType=" + messageType +
|
||||
", messages=" + Arrays.toString(messages) +
|
||||
", checksum=" + checksum +
|
||||
", customContentType='" + customContentType + '\'' +
|
||||
", customContent=" + customContent +
|
||||
'}';
|
||||
|
Loading…
Reference in New Issue
Block a user