Start on adding point settings to request handler

This commit is contained in:
Matt
2020-01-14 08:21:50 -08:00
parent c48b8c9590
commit ec93c0225c
3 changed files with 26 additions and 8 deletions

View File

@@ -176,8 +176,13 @@ public class RequestHandler {
}
public static void onPnpModel(Context ctx) throws JsonProcessingException {
ObjectMapper objectMapper = kObjectMapper;
List points = objectMapper.readValue(ctx.body(), List.class);
System.out.println(points);
//noinspection unchecked
List<Object> points = kObjectMapper.readValue(ctx.body(), List.class);
// each entry should be an xy pair
for(Object point: points) {
//noinspection RedundantCast
point = (List<Object>) point;
}
}
}