040be2feaa
Convert constructors into primary constructors Simplified logic with use of ??, ??= and method groups Cleaned up redundant conditional access qualifiers
30 lines
780 B
C#
30 lines
780 B
C#
using System.Text.Json.Serialization;
|
|
using SPTarkov.Server.Core.Models.Common;
|
|
using SPTarkov.Server.Core.Models.Eft.Inventory;
|
|
|
|
namespace SPTarkov.Server.Core.Models.Eft.Repair;
|
|
|
|
public record TraderRepairActionDataRequest : InventoryBaseActionRequestData
|
|
{
|
|
[JsonExtensionData]
|
|
public Dictionary<string, object>? ExtensionData { get; set; }
|
|
|
|
[JsonPropertyName("tid")]
|
|
public MongoId TraderId { get; set; }
|
|
|
|
[JsonPropertyName("repairItems")]
|
|
public List<RepairItem>? RepairItems { get; set; }
|
|
}
|
|
|
|
public record RepairItem
|
|
{
|
|
[JsonExtensionData]
|
|
public Dictionary<string, object>? ExtensionData { get; set; }
|
|
|
|
[JsonPropertyName("_id")]
|
|
public MongoId Id { get; set; }
|
|
|
|
[JsonPropertyName("count")]
|
|
public double? Count { get; set; }
|
|
}
|