summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api/search.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/api/search.h')
-rw-r--r--protocols/Steam/src/api/search.h12
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");
}
//{