Registering the proper de-serializer on the GetRelativeAccountHistory API response handler Gson instance
This commit is contained in:
parent
0437919bb8
commit
4f39dac4c2
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ public class DeserializationMap {
|
||||||
mClassMap.put(GetRelativeAccountHistory.class, List.class);
|
mClassMap.put(GetRelativeAccountHistory.class, List.class);
|
||||||
Gson getRelativeAcountHistoryGson = new GsonBuilder()
|
Gson getRelativeAcountHistoryGson = new GsonBuilder()
|
||||||
.setExclusionStrategies(new SkipAccountOptionsStrategy(), new SkipAssetOptionsStrategy())
|
.setExclusionStrategies(new SkipAccountOptionsStrategy(), new SkipAssetOptionsStrategy())
|
||||||
|
.registerTypeAdapter(BaseOperation.class, new BaseOperation.OperationDeserializer())
|
||||||
.registerTypeAdapter(OperationHistory.class, new OperationHistory.OperationHistoryDeserializer())
|
.registerTypeAdapter(OperationHistory.class, new OperationHistory.OperationHistoryDeserializer())
|
||||||
.registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer())
|
.registerTypeAdapter(TransferOperation.class, new TransferOperation.TransferDeserializer())
|
||||||
.registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer())
|
.registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer())
|
||||||
|
|
Loading…
Reference in a new issue