From 4f39dac4c2bccfd64d0a93ffaecdac6a9ed0c1e9 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Tue, 11 Sep 2018 17:58:00 -0500 Subject: [PATCH] Registering the proper de-serializer on the GetRelativeAccountHistory API response handler Gson instance --- .../cy/agorise/graphenej/api/android/DeserializationMap.java | 1 + 1 file changed, 1 insertion(+) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/api/android/DeserializationMap.java b/graphenej/src/main/java/cy/agorise/graphenej/api/android/DeserializationMap.java index c3c4eb0..e12ebab 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/api/android/DeserializationMap.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/api/android/DeserializationMap.java @@ -90,6 +90,7 @@ public class DeserializationMap { mClassMap.put(GetRelativeAccountHistory.class, List.class); Gson getRelativeAcountHistoryGson = new GsonBuilder() .setExclusionStrategies(new SkipAccountOptionsStrategy(), new SkipAssetOptionsStrategy()) + .registerTypeAdapter(BaseOperation.class, new BaseOperation.OperationDeserializer()) .registerTypeAdapter(OperationHistory.class, new OperationHistory.OperationHistoryDeserializer()) .registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer()) .registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer())