From c148e62ea62b06f5b23c958ce5cd68c8e3714db6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 16 Dec 2024 00:04:44 +0300 Subject: minus GetFriendListRequest HTTP request --- protocols/Steam/src/api/enums.h | 30 +++++++++--------------------- protocols/Steam/src/api/friend_list.h | 9 --------- 2 files changed, 9 insertions(+), 30 deletions(-) (limited to 'protocols/Steam/src/api') diff --git a/protocols/Steam/src/api/enums.h b/protocols/Steam/src/api/enums.h index 2cf767e37f..b93377f5a9 100644 --- a/protocols/Steam/src/api/enums.h +++ b/protocols/Steam/src/api/enums.h @@ -1,16 +1,18 @@ #ifndef _STEAM_ENUMS_H_ #define _STEAM_ENUMS_H_ -enum VisibilityState +enum class FriendRelationship : int { - Private = 1, - FriendsOnly = 2, - FriendsOfFriends = 3, - UsersOnly = 4, - Public = 5, + None = 0, + Blocked = 1, + RequestRecipient = 2, + Friend = 3, + RequestInitiator = 4, + Ignored = 5, + IgnoredFriend = 6, }; -enum PersonaState +enum class PersonaState : int { Offline = 0, Online = 1, @@ -64,20 +66,6 @@ inline PersonaStatusFlag operator &(PersonaStatusFlag lhs, PersonaStatusFlag rhs static_cast::type>(rhs)); } -enum class PersonaRelationshipAction : int -{ - // friend removed from contact list - Remove = 0, - // friend added you to ignore list - Ignore = 1, - // friend requested auth - AuthRequest = 2, - // friend added you to contact list - AddToList = 3, - // friend got (or approved?) your auth request - AuthRequested = 4, -}; - template bool contains_flag(T x, T y) { return (static_cast::type>(x) diff --git a/protocols/Steam/src/api/friend_list.h b/protocols/Steam/src/api/friend_list.h index 8c9d26a91a..407f33cf38 100644 --- a/protocols/Steam/src/api/friend_list.h +++ b/protocols/Steam/src/api/friend_list.h @@ -1,15 +1,6 @@ #ifndef _STEAM_REQUEST_FRIEND_LIST_H_ #define _STEAM_REQUEST_FRIEND_LIST_H_ -struct GetFriendListRequest : public HttpRequest -{ - GetFriendListRequest(const char *token, int64_t steamId, const char *relationship) : - HttpRequest(REQUEST_GET, "/ISteamUserOAuth/GetFriendList/v0001") - { - this << CHAR_PARAM("access_token", token) << INT64_PARAM("steamid", steamId) << CHAR_PARAM("relationship", relationship); - } -}; - struct AddFriendRequest : public HttpRequest { AddFriendRequest(const char *token, const char *sessionId, int64_t steamId, const char *who) : -- cgit v1.2.3