040be2feaa
Convert constructors into primary constructors Simplified logic with use of ??, ??= and method groups Cleaned up redundant conditional access qualifiers
33 lines
853 B
C#
33 lines
853 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.Customization;
|
|
|
|
public record BuyClothingRequestData : InventoryBaseActionRequestData
|
|
{
|
|
[JsonExtensionData]
|
|
public Dictionary<string, object>? ExtensionData { get; set; }
|
|
|
|
[JsonPropertyName("offer")]
|
|
public string? Offer { get; set; }
|
|
|
|
[JsonPropertyName("items")]
|
|
public List<PaymentItemForClothing>? Items { get; set; }
|
|
}
|
|
|
|
public record PaymentItemForClothing
|
|
{
|
|
[JsonExtensionData]
|
|
public Dictionary<string, object>? ExtensionData { get; set; }
|
|
|
|
[JsonPropertyName("del")]
|
|
public bool? Del { get; set; }
|
|
|
|
[JsonPropertyName("id")]
|
|
public MongoId Id { get; set; }
|
|
|
|
[JsonPropertyName("count")]
|
|
public int? Count { get; set; }
|
|
}
|