Adding a memo deserializer to the Gson instance that will take care of the 'get_transaction' API response

This commit is contained in:
Nelson R. Perez 2019-01-10 22:17:33 -05:00
parent 1c261746a2
commit 709b7e2734

View file

@ -207,6 +207,7 @@ public class DeserializationMap {
mClassMap.put(GetTransaction.class, Transaction.class); mClassMap.put(GetTransaction.class, Transaction.class);
Gson getTransactionGson = new GsonBuilder() Gson getTransactionGson = new GsonBuilder()
.registerTypeAdapter(Transaction.class, new Transaction.TransactionDeserializer()) .registerTypeAdapter(Transaction.class, new Transaction.TransactionDeserializer())
.registerTypeAdapter(Memo.class, new Memo.MemoDeserializer())
.registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer()) .registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer())
.registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer()) .registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer())
.create(); .create();