diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-20 12:39:25 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-20 12:39:25 +0000 |
commit | b76c5a1d907f6310d38230cc6aec2caf7dcc34be (patch) | |
tree | a4ff2213a860cefd03fdf8a885d53ef0544a5389 /protocols/Steam/src/api | |
parent | 39fcb7e3cfe09177a5ddc6a51b3b2614c1618d7a (diff) |
Steam: Support for sending typing notifications
git-svn-id: http://svn.miranda-ng.org/main/trunk@15912 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/api')
-rw-r--r-- | protocols/Steam/src/api/message.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/protocols/Steam/src/api/message.h b/protocols/Steam/src/api/message.h index 4c3ec6c80f..7c38bfb430 100644 --- a/protocols/Steam/src/api/message.h +++ b/protocols/Steam/src/api/message.h @@ -19,4 +19,21 @@ public: }
};
+class SendTypingRequest : public HttpRequest
+{
+public:
+ SendTypingRequest(const char *token, const char *umqId, const char *steamId) :
+ HttpRequest(REQUEST_POST, STEAM_API_URL "/ISteamWebUserPresenceOAuth/Message/v0001")
+ {
+ CMStringA data;
+ data.AppendFormat("access_token=%s&umqid=%s&steamid_dst=%s&type=typing",
+ token,
+ umqId,
+ steamId);
+
+ SetData(data, data.GetLength());
+ AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
+ }
+};
+
#endif //_STEAM_REQUEST_MESSAGE_H_
|