Sending id as a number inside the parameters array of the 'set_subscribe_callback' instead of a string

This commit is contained in:
Nelson R. Perez 2018-08-31 19:07:05 -05:00
parent 7e2ef7b705
commit 63bb5a6dac

View file

@ -19,7 +19,7 @@ public class SetSubscribeCallback implements ApiCallable {
@Override @Override
public ApiCall toApiCall(int apiId, long sequenceId) { public ApiCall toApiCall(int apiId, long sequenceId) {
ArrayList<Serializable> subscriptionParams = new ArrayList<>(); ArrayList<Serializable> subscriptionParams = new ArrayList<>();
subscriptionParams.add(String.format("%d", sequenceId)); subscriptionParams.add(new Long(sequenceId));
subscriptionParams.add(clearFilter); subscriptionParams.add(clearFilter);
return new ApiCall(apiId, RPC.CALL_SET_SUBSCRIBE_CALLBACK, subscriptionParams, RPC.VERSION, sequenceId); return new ApiCall(apiId, RPC.CALL_SET_SUBSCRIBE_CALLBACK, subscriptionParams, RPC.VERSION, sequenceId);
} }