From 8a904bdef0e8237dee49c1b704d4ebbc2b28a958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 31 Aug 2016 10:11:32 +0000 Subject: 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 --- protocols/FacebookRM/src/constants.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/constants.h') 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 { -- cgit v1.2.3