string.intern:
ragfair offer user nickname Quest condition type
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user