diff options
author | George Hazan <george.hazan@gmail.com> | 2024-12-16 18:48:19 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-12-16 18:48:19 +0300 |
commit | 481af24ca7b41d80d7e3a76ec0fefa7b9ab339cf (patch) | |
tree | 17e6824003afecfebc4756042691dc9862ddf3f5 /protocols/Steam/src/steam_server.cpp | |
parent | 9bdcd269ccfcbb3afc2014018a1a2575e855a166 (diff) |
added notification service
Diffstat (limited to 'protocols/Steam/src/steam_server.cpp')
-rw-r--r-- | protocols/Steam/src/steam_server.cpp | 15 |
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; |