Files
2025-08-21 09:46:00 +00:00

47 lines
1.2 KiB
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.Health;
public record HealthTreatmentRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("trader")]
public string? Trader { get; set; }
/// <summary>
/// Id of stack to take money from <br />
/// Amount of money to take off player for treatment
/// </summary>
[JsonPropertyName("items")]
public List<IdWithCount>? Items { get; set; }
[JsonPropertyName("difference")]
public Difference? Difference { get; set; }
[JsonPropertyName("timestamp")]
public long? Timestamp { get; set; }
}
public record Difference
{
[JsonPropertyName("BodyParts")]
public Dictionary<string, BodyPartValues>? BodyParts { get; set; }
[JsonPropertyName("Energy")]
public double? Energy { get; set; }
[JsonPropertyName("Hydration")]
public double? Hydration { get; set; }
}
public record BodyPartValues
{
public double Health { get; set; }
/// <summary>
/// Effects in array to be removed
/// </summary>
public List<string>? Effects { get; set; }
}