summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/constants.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2012-10-22 19:31:16 +0000
committerRobert Pösel <robyer@seznam.cz>2012-10-22 19:31:16 +0000
commit3f36fc000f39da00d7865204ba4d00e745e0b822 (patch)
tree16611b6c708dee523617b22b0020d27976289f79 /protocols/FacebookRM/src/constants.h
parentb5fe64e5a68edb20010744bcb65c3bb4d43af597 (diff)
Facebook: Reworked sending messages requests (should avoid rare ban from FB :))
git-svn-id: http://svn.miranda-ng.org/main/trunk@2050 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/constants.h')
-rw-r--r--protocols/FacebookRM/src/constants.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/constants.h b/protocols/FacebookRM/src/constants.h
index 5b2ae2af20..b2b71d82ea 100644
--- a/protocols/FacebookRM/src/constants.h
+++ b/protocols/FacebookRM/src/constants.h
@@ -23,8 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
// Version management
-#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0, 0, 9, 1)
-#define __VERSION_STRING "0.0.9.1"
+#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0, 0, 9, 2)
+#define __VERSION_STRING "0.0.9.2"
// Product management
#define FACEBOOK_NAME "Facebook"
@@ -102,7 +102,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define FACEBOOK_REQUEST_RECONNECT 130 // getting __sequence_num__ and __channel_id__
#define FACEBOOK_REQUEST_STATUS_SET 251 // setting my "What's on my mind?"
#define FACEBOOK_REQUEST_MESSAGE_SEND 300 // sending message
-#define FACEBOOK_REQUEST_MESSAGES_RECEIVE 301 // receiving messages
+#define FACEBOOK_REQUEST_MESSAGE_SEND2 301 // sending message through inbox
+#define FACEBOOK_REQUEST_MESSAGES_RECEIVE 302 // receiving messages
#define FACEBOOK_REQUEST_TYPING_SEND 304 // sending typing notification
#define FACEBOOK_REQUEST_VISIBILITY 305 // setting chat visibility
#define FACEBOOK_REQUEST_TABS 306 // closing message window
@@ -112,6 +113,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define FACEBOOK_RECV_MESSAGE 1
#define FACEBOOK_SEND_MESSAGE 2
+// Send message types
+#define MESSAGE_INBOX 0
+#define MESSAGE_MERCURY 1
+#define MESSAGE_TID 2
+#define MESSAGE_ASYNC 3
+
// Contact types
#define FACEBOOK_CONTACT_FRIEND 1 // contact that IS on our server list
#define FACEBOOK_CONTACT_NONE 2 // contact that ISN'T on our server list