Adding a memo deserializer to the Gson instance that will take care of the 'get_transaction' API response
This commit is contained in:
parent
1c261746a2
commit
709b7e2734
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue