Fix typing
This commit is contained in:
@@ -9,12 +9,14 @@ public record PmcData : BotBase
|
||||
[JsonPropertyName("Prestige")]
|
||||
[JsonConverter(typeof(ArrayToObjectFactoryConverter))]
|
||||
public Dictionary<string, long>? Prestige { get; set; }
|
||||
|
||||
public Dictionary<string, double>? CheckedMagazines { get; set; }
|
||||
|
||||
public object CheckedChambers { get; set; }
|
||||
}
|
||||
|
||||
public record PostRaidPmcData : BotBase
|
||||
{
|
||||
[JsonPropertyName("Stats")]
|
||||
public PostRaidStats? Stats { get; set; }
|
||||
}
|
||||
|
||||
public record PostRaidStats
|
||||
|
||||
@@ -163,9 +163,7 @@ public record Info
|
||||
[JsonConverter(typeof(StringToNumberFactoryConverter))]
|
||||
public int? RegistrationDate { get; set; }
|
||||
public string? GameVersion { get; set; }
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public MemberCategory? MemberCategory { get; set; }
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public MemberCategory? SelectedMemberCategory { get; set; }
|
||||
[JsonPropertyName("lockedMoveCommands")]
|
||||
public bool? LockedMoveCommands { get; set; }
|
||||
@@ -403,6 +401,8 @@ public record Victim
|
||||
public double? Distance { get; set; }
|
||||
public double? Level { get; set; }
|
||||
public string? Weapon { get; set; }
|
||||
public double? PrestigeLevel { get; set; }
|
||||
public string? ColliderType { get; set; }
|
||||
public string? Role { get; set; }
|
||||
public string? Location { get; set; }
|
||||
}
|
||||
@@ -425,6 +425,7 @@ public record CounterKeyValue
|
||||
|
||||
public record Aggressor
|
||||
{
|
||||
public double? PrestigeLevel { get; set; }
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
|
||||
public string? AccountId { get; set; }
|
||||
|
||||
@@ -438,6 +439,8 @@ public record Aggressor
|
||||
public string? HeadSegment { get; set; }
|
||||
public string? WeaponName { get; set; }
|
||||
public string? Category { get; set; }
|
||||
public string? ColliderType { get; set; }
|
||||
public string? Role { get; set; }
|
||||
}
|
||||
|
||||
public record DamageHistory
|
||||
@@ -576,17 +579,17 @@ public record Production // use this instead of productive and scavcase
|
||||
public List<Product>? Products { get; set; }
|
||||
|
||||
/** Seconds passed of production */
|
||||
public int? Progress { get; set; }
|
||||
public double? Progress { get; set; }
|
||||
|
||||
/** Is craft in some state of being worked on by client (crafting/ready to pick up) */
|
||||
[JsonPropertyName("inProgress")]
|
||||
public bool? InProgress { get; set; }
|
||||
|
||||
public string? StartTimestamp { get; set; }
|
||||
public int? SkipTime { get; set; }
|
||||
public long? StartTimestamp { get; set; }
|
||||
public double? SkipTime { get; set; }
|
||||
|
||||
/** Seconds needed to fully craft */
|
||||
public int? ProductionTime { get; set; }
|
||||
public double? ProductionTime { get; set; }
|
||||
|
||||
public List<Item>? GivenItemsInStart { get; set; }
|
||||
public bool? Interrupted { get; set; }
|
||||
|
||||
@@ -42,6 +42,7 @@ public record EndRaidResult
|
||||
/// "Survived/Transit" etc
|
||||
/// </summary>
|
||||
[JsonPropertyName("result")]
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public ExitStatus? Result { get; set; }
|
||||
|
||||
[JsonPropertyName("killerId")]
|
||||
|
||||
@@ -122,7 +122,7 @@ public class EventOutputHolder
|
||||
// Water collector / Bitcoin etc
|
||||
production.Value.SptIsComplete = false;
|
||||
production.Value.Progress = 0;
|
||||
production.Value.StartTimestamp = _timeUtil.GetTimeStamp().ToString();
|
||||
production.Value.StartTimestamp = _timeUtil.GetTimeStamp();
|
||||
}
|
||||
else if (!production.Value.InProgress ?? false)
|
||||
{
|
||||
|
||||
@@ -33,6 +33,7 @@ public class JsonUtil
|
||||
new EftEnumConverter<NotificationEventType>(),
|
||||
new EftEnumConverter<QuestTypeEnum>(),
|
||||
new EftEnumConverter<RewardType>(),
|
||||
new EftEnumConverter<ExitStatus>(),
|
||||
new BaseInteractionRequestDataConverter()
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user