summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/constants.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-08-31 10:11:32 +0000
committerRobert Pösel <robyer@seznam.cz>2016-08-31 10:11:32 +0000
commit8a904bdef0e8237dee49c1b704d4ebbc2b28a958 (patch)
treec07494e752a8a00c237afdbcc25162391d66957c /protocols/FacebookRM/src/constants.h
parentfc8bb06ec24197d50e695e5de657e7904d6ce597 (diff)
Facebook: Basic support for handling more chat events; version bump
Events like user join/leave, change emoji, etc. are now printed, but that's all. Still missing specific behavior for them, but that require more changes in events parsing and on other places. git-svn-id: http://svn.miranda-ng.org/main/trunk@17222 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/constants.h')
-rw-r--r--protocols/FacebookRM/src/constants.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/constants.h b/protocols/FacebookRM/src/constants.h
index bc90d50636..7d07a010d6 100644
--- a/protocols/FacebookRM/src/constants.h
+++ b/protocols/FacebookRM/src/constants.h
@@ -183,9 +183,17 @@ enum ClientType {
CLIENT_MOBILE = 5 // Facebook on unknown mobile client (can't be determined for offline contacts)
};
+// TODO: Rework to "Events" and add also typing, seen, contact status, chat switch, etc. then have JSON parser only for parsing and a single place for processing updates
+// Each type then could have also separate class representing it. And when giving it in some list, make it map of arrays with key=thread_id to group it by contact/chat, to have it more effective
+// Use also for Poke and such events...
enum MessageType {
- MESSAGE = 1, // Classic message
- CALL = 2, // Video call
+ MESSAGE = 1, // Classic message
+ CALL = 2, // Video call
+ ADMIN_TEXT = 3,
+ SUBSCRIBE = 4,
+ UNSUBSCRIBE = 5,
+ THREAD_NAME = 6,
+ THREAD_IMAGE = 7,
};
enum ParticipantRole {