Fixed issue with QuestRewardType

This commit is contained in:
Chomp
2025-01-13 13:30:16 +00:00
parent 0a5aaed532
commit f3b9555ac1
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ public class QuestReward
public string? Id { get; set; }
[JsonPropertyName("type")]
public string? Type { get; set; } // QuestRewardType
public QuestRewardType? Type { get; set; } // QuestRewardType
[JsonPropertyName("index")]
public int? Index { get; set; }
+4 -3
View File
@@ -1,4 +1,4 @@
namespace Core.Models.Enums;
namespace Core.Models.Enums;
public enum QuestRewardType
{
@@ -15,5 +15,6 @@ public enum QuestRewardType
Achievement,
Pockets,
CustomizationOffer,
CustomizationDirect
}
CustomizationDirect,
ExtraDailyQuest
}
+2 -1
View File
@@ -23,7 +23,8 @@ public class JsonUtil
new EftEnumConverter<GiftSenderType>(),
new EftEnumConverter<SeasonalEventType>(),
new EftEnumConverter<ProfileChangeEventType>(),
new EftEnumConverter<QuestStatusEnum>()
new EftEnumConverter<QuestStatusEnum>(),
new EftEnumConverter<QuestRewardType>()
}
};
private static readonly JsonSerializerOptions jsonSerializerOptionsIndented = new(jsonSerializerOptionsNoIndent)