From 709b7e27348ac533c8c6ca5096d1e4d33d89afa0 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 10 Jan 2019 22:17:33 -0500 Subject: [PATCH] Adding a memo deserializer to the Gson instance that will take care of the 'get_transaction' API response --- .../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 96dc64d..a283feb 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 @@ -207,6 +207,7 @@ public class DeserializationMap { mClassMap.put(GetTransaction.class, Transaction.class); Gson getTransactionGson = new GsonBuilder() .registerTypeAdapter(Transaction.class, new Transaction.TransactionDeserializer()) + .registerTypeAdapter(Memo.class, new Memo.MemoDeserializer()) .registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer()) .registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer()) .create();