summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/api/enums.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-16 00:04:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-16 00:04:44 +0300
commitc148e62ea62b06f5b23c958ce5cd68c8e3714db6 (patch)
tree47fcb9b95b27f43e61f65d44540a9db9e1f85e90 /protocols/Steam/src/api/enums.h
parent8b123abaabfafc7785cf08c68fefae5e0b528b15 (diff)
minus GetFriendListRequest HTTP request
Diffstat (limited to 'protocols/Steam/src/api/enums.h')
-rw-r--r--protocols/Steam/src/api/enums.h30
1 files changed, 9 insertions, 21 deletions
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<std::underlying_type<PersonaStatusFlag>::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<typename T>
bool contains_flag(T x, T y) {
return (static_cast<typename std::underlying_type<T>::type>(x)