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. */
|
/** The list of {@link Event}s sent inside the message. */
|
||||||
public Event[] messages;
|
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. */
|
/** The type of the custom content sent with the message. */
|
||||||
public String customContentType;
|
public String customContentType;
|
||||||
|
|
||||||
@ -30,12 +27,12 @@ public class MessageStructure {
|
|||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (o == null || getClass() != o.getClass()) return false;
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
MessageStructure that = (MessageStructure) o;
|
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
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int result = Objects.hash(messageType, checksum, customContentType, customContent);
|
int result = Objects.hash(messageType, customContentType, customContent);
|
||||||
result = 31 * result + Arrays.hashCode(messages);
|
result = 31 * result + Arrays.hashCode(messages);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -45,7 +42,6 @@ public class MessageStructure {
|
|||||||
return "MessageStructure{" +
|
return "MessageStructure{" +
|
||||||
"messageType=" + messageType +
|
"messageType=" + messageType +
|
||||||
", messages=" + Arrays.toString(messages) +
|
", messages=" + Arrays.toString(messages) +
|
||||||
", checksum=" + checksum +
|
|
||||||
", customContentType='" + customContentType + '\'' +
|
", customContentType='" + customContentType + '\'' +
|
||||||
", customContent=" + customContent +
|
", customContent=" + customContent +
|
||||||
'}';
|
'}';
|
||||||
|
Loading…
Reference in New Issue
Block a user