Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ocpp-common/src/main/java/eu/chargetime/ocpp/model/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ of this software and associated documentation files (the "Software"), to deal
SOFTWARE.
*/

import eu.chargetime.ocpp.utilities.MoreObjects;

/** Wrapper class for a message */
public class Message {
private String id;
Expand Down Expand Up @@ -86,4 +88,13 @@ public String getAction() {
public void setAction(String action) {
this.action = action;
}

@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("id", id)
.add("payload", payload)
.add("action", action)
.toString();
}
}