blob: 278dfb0439eb70f1dee49e217cad35cd703f868b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef _STEAM_REQUEST_POLL_H_
#define _STEAM_REQUEST_POLL_H_
class PollRequest : public HttpRequest
{
public:
PollRequest(const char *token, const char *umqId, UINT32 messageId, int idleSeconds) :
HttpRequest(HttpPost, STEAM_API_URL "/ISteamWebUserPresenceOAuth/Poll/v0001")
{
timeout = (STEAM_API_TIMEOUT + 5) * 1000;
// flags |= NLHRF_PERSISTENT;
Headers << CHAR_PARAM("Connection", "keep-alive");
Content = new FormUrlEncodedContent(this)
<< CHAR_PARAM("access_token", token)
<< CHAR_PARAM("umqid", umqId)
<< INT64_PARAM("message", messageId)
<< INT_PARAM("secidletime", idleSeconds)
<< INT_PARAM("sectimeout", STEAM_API_TIMEOUT);
}
};
#endif //_STEAM_REQUEST_POLL_H_
|