26 lines
538 B
C#
26 lines
538 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Core.Models.Eft.Inventory;
|
|
|
|
public record AddItemRequestData
|
|
{
|
|
// Trader id
|
|
[JsonPropertyName("tid")]
|
|
public string? TraderId { get; set; }
|
|
|
|
[JsonPropertyName("items")]
|
|
public List<ItemToAdd>? Items { get; set; }
|
|
}
|
|
|
|
public record ItemToAdd
|
|
{
|
|
[JsonPropertyName("count")]
|
|
public int? Count { get; set; }
|
|
|
|
[JsonPropertyName("sptIsPreset")]
|
|
public bool? IsPreset { get; set; }
|
|
|
|
[JsonPropertyName("item_id")]
|
|
public string? ItemId { get; set; }
|
|
}
|