From ea62db13f9ea4b3b8bd3238de83f18ddd2af0be2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Sep 2024 18:51:04 +0300 Subject: =?UTF-8?q?fixes=20#4689=20(SkypeWeb:=20=D0=BA=D1=80=D0=B8=D0=B2?= =?UTF-8?q?=D0=BE=D0=B5=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=82=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D1=82=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/SkypeWeb/src/requests/messages.h | 37 ------------------------------ 1 file changed, 37 deletions(-) (limited to 'protocols/SkypeWeb/src/requests') diff --git a/protocols/SkypeWeb/src/requests/messages.h b/protocols/SkypeWeb/src/requests/messages.h index 378c8d8549..345ce2e662 100644 --- a/protocols/SkypeWeb/src/requests/messages.h +++ b/protocols/SkypeWeb/src/requests/messages.h @@ -18,43 +18,6 @@ along with this program. If not, see . #ifndef _SKYPE_REQUEST_MESSAGES_H_ #define _SKYPE_REQUEST_MESSAGES_H_ -struct SendMessageParam -{ - MCONTACT hContact; - uint32_t hMessage; -}; - -struct SendMessageRequest : public AsyncHttpRequest -{ - SendMessageRequest(const char *username, time_t timestamp, const char *message, const char *MessageType = nullptr) : - AsyncHttpRequest(REQUEST_POST, HOST_DEFAULT, 0, &CSkypeProto::OnMessageSent) - { - m_szUrl.AppendFormat("/users/ME/conversations/%s/messages", mir_urlEncode(username).c_str()); - - JSONNode node; - node << INT64_PARAM("clientmessageid", timestamp) << CHAR_PARAM("messagetype", MessageType ? MessageType : "Text") - << CHAR_PARAM("contenttype", "text") << CHAR_PARAM("content", message); - m_szParam = node.write().c_str(); - } -}; - -struct SendActionRequest : public AsyncHttpRequest -{ - SendActionRequest(const char *username, time_t timestamp, const char *message, CSkypeProto *ppro) : - AsyncHttpRequest(REQUEST_POST, HOST_DEFAULT, 0, &CSkypeProto::OnMessageSent) - { - m_szUrl.AppendFormat("/users/ME/conversations/%s/messages", mir_urlEncode(username).c_str()); - - CMStringA content; - content.AppendFormat("%s %s", ppro->m_szSkypename.c_str(), message); - - JSONNode node; - node << INT64_PARAM("clientmessageid", timestamp) << CHAR_PARAM("messagetype", "RichText") << CHAR_PARAM("contenttype", "text") - << CHAR_PARAM("content", content) << INT_PARAM("skypeemoteoffset", ppro->m_szSkypename.GetLength() + 1); - m_szParam = node.write().c_str(); - } -}; - struct SendTypingRequest : public AsyncHttpRequest { SendTypingRequest(const char *username, int iState) : -- cgit v1.2.3