Add unrecognized event type

https://github.com/SteamRE/SteamKit/issues/493
This commit is contained in:
JustArchi
2017-12-01 00:16:54 +01:00
parent 9f8397bb8d
commit 16d3ca7a8f
2 changed files with 4 additions and 0 deletions

View File

@@ -292,6 +292,7 @@ namespace ArchiSteamFarm {
internal enum ENotification : byte {
Unknown = 0,
Trading = 1,
Unknown10 = 10, // TODO: This was mentioned as a possibility by one user, but I didn't check yet what 10 stands for
// Only custom below, different than ones available as user_notification_type
Items = 255

View File

@@ -2070,6 +2070,9 @@ namespace ArchiSteamFarm {
Trading.OnNewTrade().Forget();
}
break;
// Notifications we're not really interested in, but still valid
case ArchiHandler.NotificationsCallback.ENotification.Unknown10:
break;
default:
ASF.ArchiLogger.LogGenericWarning(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(notification.Key), notification.Key));