thiagolocatelli / parse4j

Java Library to deal with Parse (parse.com) REST API
http://thiagolocatelli.github.io/parse4j
143 stars 117 forks source link

Updates to ParseUser #5

Open briblanch opened 10 years ago

briblanch commented 10 years ago

I see that some of the methods in ParseUser are stubbed out for now. Any eta on when they will be implemented? Also, will the currentUser be set when ParseUser is fully implemented? Thanks!

thiagolocatelli commented 10 years ago

Soon... Already working on it On Mar 25, 2014 2:57 AM, "briblanch" notifications@github.com wrote:

I see that some of the methods in ParseUser are stubbed out for now. Any eta on when they will be implements? Also, will the currentUser be set when ParseUser is fully implemented? Thanks!

Reply to this email directly or view it on GitHubhttps://github.com/thiagolocatelli/parse4j/issues/5 .

briblanch commented 10 years ago

@thiagolocatelli I am trying to update properties on a user. I have tried user.saveInBackground() and user.save() but get Parse::UserCannotBeAlteredWithoutSessionError. The sessionToken is set on the user. Do you know how to get around this before the new update? Thanks!

thiagolocatelli commented 10 years ago

Can you send me your code or a sample? Thanks

briblanch commented 10 years ago

The user variable is set as a static variable with the instance of a user that is returned when

ParseUser.login(...) 

is called

That user variable is then retrieved and used as show below

user.put("weight", view.getWeightField());
user.put("height", view.getHeightField());
user.put("age", view.getAgeField());
user.saveInBackground();