more serialization and other fixes

This commit is contained in:
Alex
2025-01-08 22:37:10 +00:00
parent 251b328208
commit 708b2ec361
5 changed files with 127 additions and 6 deletions
+7 -3
View File
@@ -2,6 +2,7 @@
using System.Text.Json.Serialization;
using Core.Models.Eft.Ragfair;
using Core.Models.Enums;
using Core.Utils.Json;
using Core.Utils.Json.Converters;
namespace Core.Models.Eft.Common.Tables;
@@ -293,6 +294,9 @@ public class BotBaseInventory
[JsonPropertyName("favoriteItems")]
public List<string>? FavoriteItems { get; set; }
[JsonPropertyName("hideoutCustomizationStashId")]
public string? HideoutCustomizationStashId { get; set; }
}
public class BaseJsonSkills
@@ -304,8 +308,8 @@ public class BaseJsonSkills
public class Skills
{
[JsonConverter(typeof(ArrayToObjectFactoryConverter))]
public Dictionary<SkillTypes, Common>? Common { get; set; }
[JsonConverter(typeof(DictionaryOfListOrTConverter))]
public Dictionary<SkillTypes, ListOrT<Common>>? Common { get; set; }
[JsonConverter(typeof(ArrayToObjectFactoryConverter))]
public Dictionary<string, Mastering>? Mastering { get; set; }
@@ -681,7 +685,7 @@ public class LastCompleted
public class Notes
{
[JsonPropertyName("notes")]
[JsonPropertyName("Notes")]
public List<Note>? DataNotes { get; set; }
}