From e9a3b54db4aa8ffb6f97baabc2b676e3d9570bb1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Dec 2024 21:56:51 +0300 Subject: more code cleaning --- protocols/Steam/src/api/search.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'protocols/Steam/src/api/search.h') diff --git a/protocols/Steam/src/api/search.h b/protocols/Steam/src/api/search.h index d72d140dc5..64ff7e828f 100644 --- a/protocols/Steam/src/api/search.h +++ b/protocols/Steam/src/api/search.h @@ -1,19 +1,13 @@ #ifndef _STEAM_REQUEST_SEARCH_H_ #define _STEAM_REQUEST_SEARCH_H_ -class SearchRequest : public HttpRequest +struct SearchRequest : public HttpRequest { -public: SearchRequest(const char *token, const char *text, int offset = 0, int count = 30) : HttpRequest(REQUEST_GET, "/ISteamUserOAuth/Search/v0001") { - this - << CHAR_PARAM("access_token", token) - << CHAR_PARAM("keywords", text) - << INT_PARAM("offset", offset) - << INT_PARAM("count", count) - << CHAR_PARAM("targets", "users") - << CHAR_PARAM("fields", "all"); + this << CHAR_PARAM("access_token", token) << CHAR_PARAM("keywords", text) << INT_PARAM("offset", offset) + << INT_PARAM("count", count) << CHAR_PARAM("targets", "users") << CHAR_PARAM("fields", "all"); } //{ -- cgit v1.2.3