summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/api/message.h')
-rw-r--r--protocols/Steam/src/api/message.h20
1 files changed, 5 insertions, 15 deletions
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");
}
};