Michael Cabus
Michael Cabus

Reputation: 121

Parse, two different user types

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

Answers (1)

Cüneyt
Cüneyt

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

Related Questions