string.intern:

ragfair offer user nickname
Quest condition type
This commit is contained in:
Chomp
2025-08-03 20:48:40 +01:00
parent 2693369dec
commit dd7a81b78a
2 changed files with 14 additions and 4 deletions
@@ -174,6 +174,8 @@ public record QuestConditionTypes
public record QuestCondition
{
private string _conditionType;
[JsonExtensionData]
public Dictionary<string, object>? ExtensionData { get; set; }
@@ -268,7 +270,11 @@ public record QuestCondition
public bool? IsEncoded { get; set; }
[JsonPropertyName("conditionType")]
public required string ConditionType { get; set; }
public required string ConditionType
{
get { return _conditionType; }
set { _conditionType = string.Intern(value); }
}
[JsonPropertyName("areaType")]
public HideoutAreas? AreaType { get; set; }
@@ -120,16 +120,20 @@ public record OfferRequirement
public record RagfairOfferUser
{
private string? _nickname;
[JsonExtensionData]
public Dictionary<string, object>? ExtensionData { get; set; }
private string? _id;
[JsonPropertyName("id")]
public MongoId Id { get; set; }
[JsonPropertyName("nickname")]
public string? Nickname { get; set; }
public string? Nickname
{
get { return _nickname; }
set { _nickname = value == null ? null : string.Intern(value); }
}
[JsonPropertyName("rating")]
public double? Rating { get; set; }