summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-15 17:27:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-15 17:27:35 +0300
commitbab3e26dcc716f25e3a016056feee4c98a518157 (patch)
tree9e411a81fadd84a41fcf683187e626f220a979a3 /protocols/SkypeWeb/src/requests
parentf5af0de316fc2701511beb413ae37cb612af24e0 (diff)
code cleaning
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r--protocols/SkypeWeb/src/requests/endpoint.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/protocols/SkypeWeb/src/requests/endpoint.h b/protocols/SkypeWeb/src/requests/endpoint.h
deleted file mode 100644
index ab866aa39a..0000000000
--- a/protocols/SkypeWeb/src/requests/endpoint.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
-Copyright (c) 2015-25 Miranda NG team (https://miranda-ng.org)
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation version 2
-of the License.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef _SKYPE_REQUEST_ENDPOINT_H_
-#define _SKYPE_REQUEST_ENDPOINT_H_
-
-struct CreateEndpointRequest : public AsyncHttpRequest
-{
- CreateEndpointRequest(CSkypeProto *ppro) :
- AsyncHttpRequest(REQUEST_POST, HOST_DEFAULT, "/users/ME/endpoints", &CSkypeProto::OnEndpointCreated)
- {
- m_szParam = "{\"endpointFeatures\":\"Agent,Presence2015,MessageProperties,CustomUserProperties,Casts,ModernBots,AutoIdleForWebApi,secureThreads,notificationStream,InviteFree,SupportsReadReceipts,ued\"}";
-
- AddHeader("Origin", "https://web.skype.com");
- AddHeader("Referer", "https://web.skype.com/");
- AddAuthentication(ppro);
- }
-};
-
-struct DeleteEndpointRequest : public AsyncHttpRequest
-{
- DeleteEndpointRequest(CSkypeProto *ppro) :
- AsyncHttpRequest(REQUEST_DELETE, HOST_DEFAULT, "/users/ME/endpoints/" + mir_urlEncode(ppro->m_szId), &CSkypeProto::OnEndpointDeleted)
- {
- }
-};
-
-#endif //_SKYPE_REQUEST_ENDPOINT_H_