diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-09 08:13:08 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-09 08:13:08 +0000 |
commit | 199bf2fee8e9f3844744288a8dde5d2dbc5ff55f (patch) | |
tree | 4b4d74e3456789d481c9ece48664469a97ce5935 /protocols/VKontakte/src/vk_proto.h | |
parent | 22a27b7eeee0710e13a351b0e82da82b60d66c05 (diff) |
VKontakte: upgrade vk api version to 5.24
MarkMessagesRead, RetrieveUnreadMessages RetrieveMessagesByIds and related code was reworked for new api.
part 2 - finish
git-svn-id: http://svn.miranda-ng.org/main/trunk@10409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 99398339e8..734ffc813c 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -75,13 +75,15 @@ AsyncHttpRequest* operator<<(AsyncHttpRequest*, const TCHAR_PARAM&); struct CVkSendMsgParam
{
- CVkSendMsgParam(MCONTACT _p1, int _p2) :
+ CVkSendMsgParam(MCONTACT _p1, int _p2, int _p3 = 0) :
hContact(_p1),
- iMsgID(_p2)
+ iMsgID(_p2),
+ iCount(_p3)
{}
MCONTACT hContact;
int iMsgID;
+ int iCount;
};
struct CVkChatMessage : public MZeroedObject
@@ -207,6 +209,7 @@ struct CVkProto : public PROTO<CVkProto> void RetrieveMessagesByIds(const CMStringA &mids);
void RetrieveUnreadMessages();
void OnReceiveMessages(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+ void OnReceiveDlgs(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnSendMessage(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq);
void GetHistoryDlg(MCONTACT hContact, int iLastMsg);
|