mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 17:08:34 +03:00
Add support for new room fields
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
3c9953196a
commit
9ab55198ee
1 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,7 @@ package com.nextcloud.talk.models.json.rooms;
|
|||
|
||||
import com.bluelinelabs.logansquare.annotation.JsonField;
|
||||
import com.bluelinelabs.logansquare.annotation.JsonObject;
|
||||
import com.nextcloud.talk.models.json.chat.ChatMessage;
|
||||
import com.nextcloud.talk.models.json.converters.EnumParticipantTypeConverter;
|
||||
import com.nextcloud.talk.models.json.converters.EnumRoomTypeConverter;
|
||||
import com.nextcloud.talk.models.json.participants.Participant;
|
||||
|
@ -67,6 +68,12 @@ public class Room {
|
|||
public boolean isFavorite;
|
||||
@JsonField(name = "lastActivity")
|
||||
public long lastActivity;
|
||||
@JsonField(name = "unreadMessages")
|
||||
public int unreadMessages;
|
||||
@JsonField(name = "unreadMention")
|
||||
public boolean unreadMention;
|
||||
@JsonField(name = "lastMessage")
|
||||
public ChatMessage lastMessage;
|
||||
|
||||
public boolean isPublic() {
|
||||
return (RoomType.ROOM_PUBLIC_CALL.equals(type));
|
||||
|
|
Loading…
Reference in a new issue