diff options
author | George Hazan <george.hazan@gmail.com> | 2024-12-12 21:56:51 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-12-12 21:56:51 +0300 |
commit | e9a3b54db4aa8ffb6f97baabc2b676e3d9570bb1 (patch) | |
tree | ff76b25d2c458630483fb57fc7383df10e8c0001 /protocols/Steam/src/api/search.h | |
parent | f1a5f02b05bae013e1c7773328b773565031b3c6 (diff) |
more code cleaning
Diffstat (limited to 'protocols/Steam/src/api/search.h')
-rw-r--r-- | protocols/Steam/src/api/search.h | 12 |
1 files changed, 3 insertions, 9 deletions
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");
}
//{
|