From 935b0d25758c42c1b532b3f4b851e862a26dccc5 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 31 May 2018 23:26:15 -0500 Subject: [PATCH] Using the OperationHistoryDeserializer in the GetRelativeAccountHistory api call --- .../java/cy/agorise/graphenej/api/GetRelativeAccountHistory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/api/GetRelativeAccountHistory.java b/graphenej/src/main/java/cy/agorise/graphenej/api/GetRelativeAccountHistory.java index b13c78d..c0e7c7d 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/api/GetRelativeAccountHistory.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/api/GetRelativeAccountHistory.java @@ -160,6 +160,7 @@ public class GetRelativeAccountHistory extends BaseGrapheneHandler { }else if(baseResponse.id >= GET_HISTORY_DATA){ Type RelativeAccountHistoryResponse = new TypeToken>>(){}.getType(); GsonBuilder gsonBuilder = new GsonBuilder(); + gsonBuilder.registerTypeAdapter(OperationHistory.class, new OperationHistory.OperationHistoryDeserializer()); gsonBuilder.registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer()); gsonBuilder.registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer()); gsonBuilder.registerTypeAdapter(Memo.class, new Memo.MemoDeserializer());