Fix AT failure because of additional field sent by Orion (#299)

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
This commit is contained in:
pinges
2020-01-09 18:00:36 +10:00
committed by Usman Saleem
parent 5535203893
commit b7a1422165
5 changed files with 21 additions and 8 deletions

View File

@@ -18,18 +18,21 @@ import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonPropertyOrder({"payload", "privacyGroupId"})
@JsonPropertyOrder({"payload", "privacyGroupId", "senderKey"})
public class ReceiveResponse {
private final byte[] payload;
private final String privacyGroupId;
private final String senderKey;
@JsonCreator
public ReceiveResponse(
@JsonProperty(value = "payload") final byte[] payload,
@JsonProperty(value = "privacyGroupId") final String privacyGroupId) {
@JsonProperty(value = "privacyGroupId") final String privacyGroupId,
@JsonProperty(value = "senderKey") final String senderKey) {
this.payload = payload;
this.privacyGroupId = privacyGroupId;
this.senderKey = senderKey;
}
public byte[] getPayload() {
@@ -39,4 +42,8 @@ public class ReceiveResponse {
public String getPrivacyGroupId() {
return privacyGroupId;
}
public String getSenderKey() {
return senderKey;
}
}