summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/entities.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/entities.h')
-rw-r--r--protocols/FacebookRM/src/entities.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/entities.h b/protocols/FacebookRM/src/entities.h
index e289a176eb..a70757e1c3 100644
--- a/protocols/FacebookRM/src/entities.h
+++ b/protocols/FacebookRM/src/entities.h
@@ -73,11 +73,26 @@ struct facebook_user
}
};
+struct chatroom_participant
+{
+ std::string user_id;
+ std::string nick;
+ ParticipantRole role;
+ bool is_former;
+ bool loaded;
+
+ chatroom_participant() : loaded(false), is_former(false), role(ROLE_NONE) {}
+};
+
struct facebook_chatroom
{
std::string thread_id;
std::tstring chat_name;
- std::map<std::string, std::string> participants;
+ std::map<std::string, chatroom_participant> participants;
+ bool can_reply;
+ bool is_archived;
+ bool is_subscribed;
+ bool read_only;
facebook_chatroom(std::string thread_id) : thread_id(thread_id) {}
};