add different types of permissions

add different types of permissions to Conversation.java and Participant.java (though they are not used yet)

For conversation see
https://nextcloud-talk.readthedocs.io/en/latest/conversation/#get-user-s-conversations

For Participant see
https://nextcloud-talk.readthedocs.io/en/latest/participant/#get-list-of-participants-in-a-conversation

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-05-09 18:37:26 +02:00
parent 4d00d1e0e6
commit 99e9bcb0e8
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
2 changed files with 19 additions and 0 deletions

View File

@ -111,6 +111,19 @@ public class Conversation {
@JsonField(name = "notificationCalls")
public Integer notificationCalls;
@JsonField(name = "permissions")
public int permissions;
@JsonField(name = "attendeePermissions")
public int attendeePermissions;
@JsonField(name = "callPermissions")
public int callPermissions;
@JsonField(name = "defaultPermissions")
public int defaultPermissions;
public boolean isPublic() {
return (ConversationType.ROOM_PUBLIC_CALL.equals(type));
}

View File

@ -87,6 +87,12 @@ public class Participant {
@JsonField(name = "statusMessage")
public String statusMessage;
@JsonField(name = "permissions")
public int permissions;
@JsonField(name = "attendeePermissions")
public int attendeePermissions;
public String source;
public boolean selected;