From a3aa9956e37e7e2f4b278ac146914202cb401600 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 13 Sep 2018 15:50:18 -0500 Subject: [PATCH] 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 --- .../src/main/java/cy/agorise/graphenej/models/ApiCall.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/models/ApiCall.java b/graphenej/src/main/java/cy/agorise/graphenej/models/ApiCall.java index fa03bdf..78f49a2 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/models/ApiCall.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/models/ApiCall.java @@ -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);