You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to add a ParseObject array to an object. With the Android API I use the ParseObject.addAll method:
public ParseObject getParseObject() {
ParseObject po = new ParseObject("CustomExercise");
po.put("type", type.id);
po.put("question", question);
po.put("user", ParseUser.getCurrentUser());
int index = 0;
List<ParseObject> opts = new ArrayList<ParseObject>();
for (String option : options) {
ParseObject opo = new ParseObject("ExerciseOption");
opo.put("text", option);
opo.put("correct", index == correctIndex);
opts.add(opo);
index++;
}
po.addAll("options", opts);
return po;
}
which works well, but I get an "java.lang.IllegalArgumentException: not implemented!" exception when trying to use add or addAll in Parse4j. The documentations mentions addAllUnique, but it's also not implemented. Is there an alternative way of doing it?
The text was updated successfully, but these errors were encountered:
I need to add a ParseObject array to an object. With the Android API I use the ParseObject.addAll method:
which works well, but I get an "java.lang.IllegalArgumentException: not implemented!" exception when trying to use add or addAll in Parse4j. The documentations mentions addAllUnique, but it's also not implemented. Is there an alternative way of doing it?
The text was updated successfully, but these errors were encountered: