summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api/history.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/api/history.h')
-rw-r--r--protocols/Steam/src/api/history.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/protocols/Steam/src/api/history.h b/protocols/Steam/src/api/history.h
deleted file mode 100644
index fbc09abed6..0000000000
--- a/protocols/Steam/src/api/history.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef _STEAM_REQUEST_HISTORY_H_
-#define _STEAM_REQUEST_HISTORY_H_
-
-class GetConversationsRequest : public HttpRequest
-{
-public:
- GetConversationsRequest(CSteamProto *ppro) :
- HttpRequest(REQUEST_GET, "/IFriendMessagesService/GetActiveMessageSessions/v0001")
- {
- this << CHAR_PARAM("access_token", ppro->getMStringA("TokenSecret"));
- }
-
- //{
- // "response": {
- // "message_sessions": [
- // {
- // "accountid_friend": XXXXXXXXX,
- // "last_message" : 1514975719,
- // "last_view" : 1514975719,
- // "unread_message_count" : 0
- // }
- // ]
- // ,
- // "timestamp": 1515007542
- // }
- //}
-};
-
-class GetHistoryMessagesRequest : public HttpRequest
-{
-public:
- GetHistoryMessagesRequest(const char *token, const char *steamId, const char *who, time_t since) :
- HttpRequest(REQUEST_GET, "/IFriendMessagesService/GetRecentMessages/v0001")
- {
- this
- << CHAR_PARAM("access_token", token)
- << CHAR_PARAM("steamid1", steamId)
- << CHAR_PARAM("steamid2", who)
- // Steam somehow doesn't respect too precise start time parameter, so we better request older time and then do own filtering again
- << INT64_PARAM("rtime32_start_time", since - 1500);
- }
-};
-
-#endif //_STEAM_REQUEST_HISTORY_H_