Using a long data type for the sequenceId variable

This commit is contained in:
Nelson R. Perez 2017-11-09 17:51:29 -05:00
parent 2d81979c08
commit 2ea1fa9cc7

View file

@ -6,13 +6,14 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer; import com.google.gson.JsonSerializer;
import cy.agorise.graphenej.interfaces.JsonSerializable;
import java.io.Serializable; import java.io.Serializable;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import cy.agorise.graphenej.interfaces.JsonSerializable;
/** /**
* Class used to build a Graphene websocket API call. * Class used to build a Graphene websocket API call.
* @see <a href="http://docs.bitshares.org/api/websocket.html">Websocket Calls & Notifications</a> * @see <a href="http://docs.bitshares.org/api/websocket.html">Websocket Calls & Notifications</a>
@ -28,9 +29,9 @@ public class ApiCall implements JsonSerializable {
public String jsonrpc; public String jsonrpc;
public List<Serializable> params; public List<Serializable> params;
public int apiId; public int apiId;
public int sequenceId; public long sequenceId;
public ApiCall(int apiId, String methodToCall, List<Serializable> params, String jsonrpc, int sequenceId){ public ApiCall(int apiId, String methodToCall, List<Serializable> params, String jsonrpc, long sequenceId){
this.apiId = apiId; this.apiId = apiId;
this.method = "call"; this.method = "call";
this.methodToCall = methodToCall; this.methodToCall = methodToCall;
@ -39,7 +40,7 @@ public class ApiCall implements JsonSerializable {
this.sequenceId = sequenceId; this.sequenceId = sequenceId;
} }
public ApiCall(int apiId, String method, String methodToCall, List<Serializable> params, String jsonrpc, int sequenceId){ public ApiCall(int apiId, String method, String methodToCall, List<Serializable> params, String jsonrpc, long sequenceId){
this.apiId = apiId; this.apiId = apiId;
this.method = method; this.method = method;
this.methodToCall = methodToCall; this.methodToCall = methodToCall;