From 2ea1fa9cc73f4fd042907b2297b1f3a6fcbc3f28 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 9 Nov 2017 17:51:29 -0500 Subject: [PATCH] Using a long data type for the sequenceId variable --- .../main/java/cy/agorise/graphenej/models/ApiCall.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 d6be686..58707ae 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/models/ApiCall.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/models/ApiCall.java @@ -6,13 +6,14 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; -import cy.agorise.graphenej.interfaces.JsonSerializable; import java.io.Serializable; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; +import cy.agorise.graphenej.interfaces.JsonSerializable; + /** * Class used to build a Graphene websocket API call. * @see Websocket Calls & Notifications @@ -28,9 +29,9 @@ public class ApiCall implements JsonSerializable { public String jsonrpc; public List params; public int apiId; - public int sequenceId; + public long sequenceId; - public ApiCall(int apiId, String methodToCall, List params, String jsonrpc, int sequenceId){ + public ApiCall(int apiId, String methodToCall, List params, String jsonrpc, long sequenceId){ this.apiId = apiId; this.method = "call"; this.methodToCall = methodToCall; @@ -39,7 +40,7 @@ public class ApiCall implements JsonSerializable { this.sequenceId = sequenceId; } - public ApiCall(int apiId, String method, String methodToCall, List params, String jsonrpc, int sequenceId){ + public ApiCall(int apiId, String method, String methodToCall, List params, String jsonrpc, long sequenceId){ this.apiId = apiId; this.method = method; this.methodToCall = methodToCall;