summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-16 18:48:19 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-16 18:48:19 +0300
commit481af24ca7b41d80d7e3a76ec0fefa7b9ab339cf (patch)
tree17e6824003afecfebc4756042691dc9862ddf3f5 /protocols/Steam/src/steam_server.cpp
parent9bdcd269ccfcbb3afc2014018a1a2575e855a166 (diff)
added notification service
Diffstat (limited to 'protocols/Steam/src/steam_server.cpp')
-rw-r--r--protocols/Steam/src/steam_server.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_server.cpp b/protocols/Steam/src/steam_server.cpp
index 4528ccecfe..f7330dbc49 100644
--- a/protocols/Steam/src/steam_server.cpp
+++ b/protocols/Steam/src/steam_server.cpp
@@ -66,6 +66,21 @@ void CSteamProto::OnMessageSent(const CFriendMessagesSendMessageResponse &reply,
/////////////////////////////////////////////////////////////////////////////////////////
+void CSteamProto::OnGotNotification(const CSteamNotificationNotificationsReceivedNotification &reply, const CMsgProtoBufHeader &hdr)
+{
+ if (hdr.eresult != 1)
+ return;
+
+ debugLogA("got %d notifications", reply.n_notifications);
+
+ for (int i = 0; i < reply.n_notifications; i++) {
+ auto *N = reply.notifications[i];
+ debugLogA("notification type %d: %s", N->notification_type, N->body_data);
+ }
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
void CSteamProto::SendFriendActiveSessions()
{
CFriendsMessagesGetActiveMessageSessionsRequest request;