From e9a3b54db4aa8ffb6f97baabc2b676e3d9570bb1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Dec 2024 21:56:51 +0300 Subject: more code cleaning --- protocols/Steam/src/api/message.h | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'protocols/Steam/src/api/message.h') diff --git a/protocols/Steam/src/api/message.h b/protocols/Steam/src/api/message.h index 934bdc875e..5f41876a15 100644 --- a/protocols/Steam/src/api/message.h +++ b/protocols/Steam/src/api/message.h @@ -1,32 +1,22 @@ #ifndef _STEAM_REQUEST_MESSAGE_H_ #define _STEAM_REQUEST_MESSAGE_H_ -class SendMessageRequest : public HttpRequest +struct SendMessageRequest : public HttpRequest { -public: SendMessageRequest(const char *token, const char *umqId, const char *steamId, const char *text) : HttpRequest(REQUEST_POST, "/ISteamWebUserPresenceOAuth/Message/v0001") { - this - << CHAR_PARAM("access_token", token) - << CHAR_PARAM("umqid", umqId) - << CHAR_PARAM("steamid_dst", steamId) - << CHAR_PARAM("type", "saytext") - << CHAR_PARAM("text", text); + this << CHAR_PARAM("access_token", token) << CHAR_PARAM("umqid", umqId) << CHAR_PARAM("steamid_dst", steamId) + << CHAR_PARAM("type", "saytext") << CHAR_PARAM("text", text); } }; -class SendTypingRequest : public HttpRequest +struct SendTypingRequest : public HttpRequest { -public: SendTypingRequest(const char *token, const char *umqId, const char *steamId) : HttpRequest(REQUEST_POST, "/ISteamWebUserPresenceOAuth/Message/v0001") { - this - << CHAR_PARAM("access_token", token) - << CHAR_PARAM("umqid", umqId) - << CHAR_PARAM("steamid_dst", steamId) - << CHAR_PARAM("type", "typing"); + this << CHAR_PARAM("access_token", token) << CHAR_PARAM("umqid", umqId) << CHAR_PARAM("steamid_dst", steamId) << CHAR_PARAM("type", "typing"); } }; -- cgit v1.2.3