示例#1
0
 @Override
 public void call(JavaScriptFunctionArguments args) {
   JsArray<FieldPacket> fields = args.get(0);
   FieldPacket[] fieldPackets = new FieldPacket[fields != null ? fields.length() : 0];
   if (fields != null) for (int i = 0; i < fields.length(); i++) fieldPackets[i] = fields.get(i);
   onEvent(fieldPackets);
 }
 @Override
 public void call(JavaScriptFunctionArguments args) {
   onEvent(args.<RequestError>get(0), args.<ListObjectsData>get(1));
 }
示例#3
0
 @Override
 public void call(JavaScriptFunctionArguments args) {
   onError(
       (NodeJsError) args.get(0), (Request) args.get(1),
       (Response) args.get(2), (NextCall) args.get(3));
 }