diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-07-25 19:20:52 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-07-25 19:20:52 +0000 |
commit | f594c8c321533e59d66e7d47ab1a3cdbf551ad90 (patch) | |
tree | d0a74f6a0d87d192f21dd905941ade79a841c1bb /protocols/FacebookRM/src/entities.h | |
parent | 0a110324bc5c7316fc52d9d86137d40759508794 (diff) |
Facebook: Improve loading users in chatrooms
Fix loading all names (previously it won't loaded name of last user), load also former participants, code refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@17129 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/entities.h')
-rw-r--r-- | protocols/FacebookRM/src/entities.h | 17 |
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) {} }; |