I am trying to update a field in a ParseUser and I am using an external library to use Parse with Java. Even though I get the ParseUser object and can use functions like getEmail(), getUsername(), the functions like setEmail("[email protected]"), put("friends", list), setUsername("bom") doesn't work.
Any ideas on how to solve this?
void updateParse(int id){
ParseQuery<ParseUser> query = ParseQuery.getQuery(ParseUser.class);
query.whereEqualTo("alikeId", 2);
query.findInBackground(new FindCallback<ParseUser>() {
public void done(List<ParseUser> results, parse4p.ParseException e) {
if ( results == null) {
println("Name not found within the class");
} else {
ParseUser temp = results.get(0);
temp.setEmail("[email protected]");
}
}
}
);
}