From 02260169dc542a2134438ec5d24eda2eb146d486 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Dec 2024 19:22:39 +0300 Subject: Steam: - fixes offline / missing messages fetching; - two HTTP queries removed and replaced with new API calls --- protocols/Steam/src/api/app_info.h | 25 ------------------------- protocols/Steam/src/api/history.h | 18 ------------------ 2 files changed, 43 deletions(-) delete mode 100644 protocols/Steam/src/api/app_info.h delete mode 100644 protocols/Steam/src/api/history.h (limited to 'protocols/Steam/src/api') diff --git a/protocols/Steam/src/api/app_info.h b/protocols/Steam/src/api/app_info.h deleted file mode 100644 index d8a187d444..0000000000 --- a/protocols/Steam/src/api/app_info.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef _STEAM_REQUEST_APP_INFO_H_ -#define _STEAM_REQUEST_APP_INFO_H_ - -struct GetAppInfoRequest : public HttpRequest -{ - GetAppInfoRequest(const char *token, uint32_t appId) : - HttpRequest(REQUEST_GET, "/ISteamGameOAuth/GetAppInfo/v0001") - { - this << CHAR_PARAM("access_token", token) << INT_PARAM("appIds", appId); - } - - //{ - // "apps": [ - // { - // "appid": 271590, - // "name" : "Grand Theft Auto V", - // "iconurl" : "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/271590/1e72f87eb927fa1485e68aefaff23c7fd7178251.jpg", - // "logourl" : "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/271590/e447e82f8b0c67f9e001498503c62f2a187bc609.jpg", - // "logosmallurl" : "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/271590/e447e82f8b0c67f9e001498503c62f2a187bc609_thumb.jpg" - // } - // ] - //} -}; - -#endif //_STEAM_REQUEST_APP_INFO_H_ diff --git a/protocols/Steam/src/api/history.h b/protocols/Steam/src/api/history.h deleted file mode 100644 index d3e4a49988..0000000000 --- a/protocols/Steam/src/api/history.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef _STEAM_REQUEST_HISTORY_H_ -#define _STEAM_REQUEST_HISTORY_H_ - -struct GetHistoryMessagesRequest : public HttpRequest -{ - GetHistoryMessagesRequest(const char *token, int64_t steamId, int64_t who, time_t since) : - HttpRequest(REQUEST_GET, "/IFriendMessagesService/GetRecentMessages/v0001") - { - this - << CHAR_PARAM("access_token", token) - << INT64_PARAM("steamid1", steamId) - << INT64_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_ -- cgit v1.2.3