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:
parent
4f39dac4c2
commit
a3aa9956e3
1 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,10 @@ public class ApiCall implements JsonSerializable {
|
||||||
array.add(((JsonSerializable) element).toJsonObject());
|
array.add(((JsonSerializable) element).toJsonObject());
|
||||||
else if (element instanceof String) {
|
else if (element instanceof String) {
|
||||||
array.add((String) element);
|
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);
|
methodParams.add(array);
|
||||||
|
|
Loading…
Reference in a new issue