Send string representation of notification type enum to client to let profile changes work #368

This commit is contained in:
Chomp
2025-06-07 19:50:46 +01:00
parent bcd366c2b5
commit 2d67d8002b
4 changed files with 21 additions and 33 deletions
@@ -1,8 +1,8 @@
using System.Text.Json.Serialization;
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
using SPTarkov.Server.Core.Models.Eft.Profile;
using SPTarkov.Server.Core.Models.Eft.Ws;
using SPTarkov.Server.Core.Models.Enums;
using SPTarkov.Server.Core.Utils.Json.Converters;
namespace SPTarkov.Server.Core.Models.Spt.Dialog;
@@ -155,7 +155,7 @@ public record ProfileChangeEvent
}
[JsonPropertyName("Type")]
public ProfileChangeEventType? Type
public string Type
{
get;
set;
@@ -182,16 +182,3 @@ public record ProfileChangeEvent
set;
}
}
[EftEnumConverter]
public enum ProfileChangeEventType
{
TraderSalesSum,
TraderStanding,
ProfileLevel,
SkillPoints,
ExamineAllItems,
UnlockTrader,
AssortmentUnlockRule,
HideoutAreaLevel
}