Fix PinOrLockRequests

This commit is contained in:
CWX
2025-01-28 16:39:44 +00:00
parent 465054eabf
commit 56cb9194a3
2 changed files with 3 additions and 0 deletions
@@ -11,5 +11,6 @@ public record PinOrLockItemRequest : InventoryBaseActionRequestData
/** "Pinned"/"Locked"/"Free" */
[JsonPropertyName("State")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public PinLockState? State { get; set; }
}
+2
View File
@@ -1,6 +1,7 @@
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;
using Core.Models.Eft.Common.Tables;
using SptCommon.Annotations;
using Core.Models.Eft.Ws;
using Core.Models.Enums;
@@ -35,6 +36,7 @@ public class JsonUtil
new EftEnumConverter<RewardType>(),
new EftEnumConverter<ExitStatus>(),
new EftEnumConverter<MemberCategory>(),
new EftEnumConverter<PinLockState>(),
new BaseInteractionRequestDataConverter()
}
};