Multiple casting fixes

This commit is contained in:
Chomp
2025-02-05 20:16:19 +00:00
parent 027ee9ddad
commit 955e44eb62
30 changed files with 134 additions and 126 deletions
@@ -154,11 +154,14 @@ public record Info
public string? LowerNickname { get; set; }
public string? Side { get; set; }
public bool? SquadInviteRestriction { get; set; }
// Confirmed in client
public int? PrestigeLevel { get; set; }
public string? Voice { get; set; }
public int? Level { get; set; }
///Experience the bot has gained
//Experience the bot has gained
// Confirmed in client
public int? Experience { get; set; }
public List<Ban>? Bans { get; set; }
@@ -166,6 +169,7 @@ public record Info
public long? BannedUntil { get; set; }
public bool? IsStreamerModeAvailable { get; set; }
// Confirmed in client
[JsonConverter(typeof(StringToNumberFactoryConverter))]
public int? RegistrationDate { get; set; }
@@ -1119,10 +1119,10 @@ public record Props
public string? RepairType { get; set; }
[JsonPropertyName("StackMinRandom")]
public double? StackMinRandom { get; set; }
public int? StackMinRandom { get; set; }
[JsonPropertyName("StackMaxRandom")]
public double? StackMaxRandom { get; set; }
public int? StackMaxRandom { get; set; }
[JsonPropertyName("ammoType")]
public string? AmmoType { get; set; }
@@ -59,6 +59,7 @@ public record RagfairOffer
[JsonPropertyName("buyRestrictionMax")]
public int? BuyRestrictionMax { get; set; }
// Confirmed in client
[JsonPropertyName("buyRestrictionCurrent")]
public int? BuyRestrictionCurrent { get; set; }
@@ -1,3 +1,4 @@
using Core.Models.Enums;
using System.Text.Json.Serialization;
namespace Core.Models.Spt.Weather;
@@ -5,7 +6,7 @@ namespace Core.Models.Spt.Weather;
public record GetLocalWeatherResponseData
{
[JsonPropertyName("season")]
public int? Season { get; set; }
public Season? Season { get; set; }
[JsonPropertyName("weather")]
public List<Eft.Weather.Weather>? Weather { get; set; }