Reputation: 121
I am using Parse for a backend for Android...my app has two different user types (doctor/patient)...how can I indicate the role of each of these user types?
Thanks so much
Michael Cabus
Upvotes: 1
Views: 176
Reputation: 2585
You can create channel called "doctor" and "patient". In your app just subscribe one of these channel. Or before read this https://parse.com/docs/android_guide#roles This quote like your question's answer.
ParseObject wallPost = new ParseObject("WallPost");
ParseACL postACL = new ParseACL();
postACL.setRoleWriteAccess("Moderators", true);
wallPost.setACL(postACL);
wallPost.save();
Upvotes: 1