Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Common/MinMax.cs
T
2025-06-25 15:16:38 +01:00

29 lines
560 B
C#

using System.Numerics;
using System.Text.Json.Serialization;
namespace SPTarkov.Server.Core.Models.Common;
public record MinMax<T>
where T : IMinMaxValue<T>
{
[JsonExtensionData]
public Dictionary<string, object>? ExtensionData { get; set; }
public MinMax(T min, T max)
{
Min = min;
Max = max;
}
public MinMax() { }
[JsonPropertyName("type")]
public string? Type { get; set; }
[JsonPropertyName("max")]
public T Max { get; set; }
[JsonPropertyName("min")]
public T Min { get; set; }
}