Adding serialization capabilities for parameters that are themselves arrays of Integer or Long types, like what we need to properly serialize the 'get_account_history_by_operations' API call

This commit is contained in:
Nelson R. Perez 2018-09-13 15:50:18 -05:00
parent 4f39dac4c2
commit a3aa9956e3

View file

@ -87,6 +87,10 @@ public class ApiCall implements JsonSerializable {
array.add(((JsonSerializable) element).toJsonObject());
else if (element instanceof String) {
array.add((String) element);
}else if (element instanceof Long){
array.add((Long) element);
}else if(element instanceof Integer){
array.add((Integer) element);
}
}
methodParams.add(array);