.NET Format Style Fixes
This commit is contained in:
@@ -15,45 +15,25 @@ public record EndLocalRaidRequestData : IRequestData
|
||||
/// 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 record EndRaidResult
|
||||
@@ -62,70 +42,38 @@ public record EndRaidResult
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[JsonPropertyName("profile")]
|
||||
public PmcData? Profile
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public PmcData? Profile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// "Survived/Transit" etc
|
||||
/// </summary>
|
||||
[JsonPropertyName("result")]
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
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 double? PlayTime
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public double? PlayTime { get; set; }
|
||||
}
|
||||
|
||||
public record LocationTransit
|
||||
@@ -134,87 +82,43 @@ public record LocationTransit
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[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
|
||||
/// </summary>
|
||||
[JsonPropertyName("sptExitName")]
|
||||
public string? SptExitName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string? SptExitName { get; set; }
|
||||
}
|
||||
|
||||
public record TransitProfile
|
||||
@@ -223,23 +127,11 @@ public record TransitProfile
|
||||
public Dictionary<string, object> ExtensionData { get; set; }
|
||||
|
||||
[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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user