Pars relationship between custom and installation classes

I am developing an application using parse.com. In my installation class, I want to save the userId object. I tried this code, but the type "currentuser.set" is undefined.

ParseInstallation currentInstall = ParseInstallation.getCurrentInstallation();
currentInstall.set("User",ParseUser.getCurrentUser());
currentInstall.saveInBackground();

how can i encode this?

+4
source share
2 answers

If you want to set objects in an object ParseInstallation, you need to use "put" rather than "set".

And it ParseUser.getCurrentUser()returns the user object, not objectId.

+4
source

see the sdk sdk section in the relationship section

https://parse.com/docs/android_guide#objects-pointers

, . OID .

, , OID ".objectId"...

0

Source: https://habr.com/ru/post/1530566/


All Articles