initial change of nullables and few more generators

This commit is contained in:
CWX
2025-01-08 13:16:38 +00:00
parent 7b7f5cf9d2
commit 3ca974de8a
118 changed files with 1050 additions and 947 deletions
@@ -11,96 +11,96 @@ public class EndLocalRaidRequestData
/// ID of server player just left
/// </summary>
[JsonPropertyName("serverId")]
public string ServerId { get; set; }
public string? ServerId { get; set; }
[JsonPropertyName("results")]
public EndRaidResult Results { get; set; }
public EndRaidResult? Results { get; set; }
/// <summary>
/// Insured items left in raid by player
/// </summary>
[JsonPropertyName("lostInsuredItems")]
public List<Item> LostInsuredItems { get; set; }
public List<Item>? LostInsuredItems { get; set; }
/// <summary>
/// Items sent via traders to player, keyed to service e.g. BTRTransferStash
/// </summary>
[JsonPropertyName("transferItems")]
public Dictionary<string, List<Item>> TransferItems { get; set; }
public Dictionary<string, List<Item>>? TransferItems { get; set; }
[JsonPropertyName("locationTransit")]
public LocationTransit LocationTransit { get; set; }
public LocationTransit? LocationTransit { get; set; }
}
public class EndRaidResult
{
public PmcData Profile { get; set; }
public PmcData? Profile { get; set; }
/// <summary>
/// "Survived/Transit" etc
/// </summary>
[JsonPropertyName("result")]
public ExitStatus Result { get; set; }
public ExitStatus? Result { get; set; }
[JsonPropertyName("killerId")]
public string KillerId { get; set; }
public string? KillerId { get; set; }
[JsonPropertyName("killerAid")]
public string KillerAid { get; set; }
public string? KillerAid { get; set; }
/// <summary>
/// "Gate 3" etc
/// </summary>
[JsonPropertyName("exitName")]
public string ExitName { get; set; }
public string? ExitName { get; set; }
[JsonPropertyName("inSession")]
public bool InSession { get; set; }
public bool? InSession { get; set; }
[JsonPropertyName("favorite")]
public bool Favorite { get; set; }
public bool? Favorite { get; set; }
/// <summary>
/// Seconds in raid
/// </summary>
[JsonPropertyName("playTime")]
public int PlayTime { get; set; }
public int? PlayTime { get; set; }
}
public class LocationTransit
{
[JsonPropertyName("hash")]
public string Hash { get; set; }
public string? Hash { get; set; }
[JsonPropertyName("playersCount")]
public int PlayersCount { get; set; }
public int? PlayersCount { get; set; }
[JsonPropertyName("ip")]
public string Ip { get; set; }
public string? Ip { get; set; }
[JsonPropertyName("location")]
public string Location { get; set; }
public string? Location { get; set; }
[JsonPropertyName("profiles")]
public Dictionary<string, TransitProfile> Profiles { get; set; }
public Dictionary<string, TransitProfile>? Profiles { get; set; }
[JsonPropertyName("transitionRaidId")]
public string TransitionRaidId { get; set; }
public string? TransitionRaidId { get; set; }
[JsonPropertyName("raidMode")]
public string RaidMode { get; set; }
public string? RaidMode { get; set; }
[JsonPropertyName("side")]
public string Side { get; set; }
public string? Side { get; set; }
[JsonPropertyName("dayTime")]
public string DayTime { get; set; }
public string? DayTime { get; set; }
/// <summary>
/// The location player last visited
/// </summary>
[JsonPropertyName("sptLastVisitedLocation")]
public string SptLastVisitedLocation { get; set; }
public string? SptLastVisitedLocation { get; set; }
/// <summary>
/// Name of exit taken
@@ -112,11 +112,11 @@ public class LocationTransit
public class TransitProfile
{
[JsonPropertyName("_id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("keyId")]
public string KeyId { get; set; }
public string? KeyId { get; set; }
[JsonPropertyName("isSolo")]
public bool IsSolo { get; set; }
public bool? IsSolo { get; set; }
}