Registering the proper de-serializer on the GetRelativeAccountHistory API response handler Gson instance

This commit is contained in:
Nelson R. Perez 2018-09-11 17:58:00 -05:00
parent 0437919bb8
commit 4f39dac4c2

View file

@ -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())