Questionable/Questionable.Model/V1/QuestWorkValue.cs

17 lines
420 B
C#
Raw Normal View History

2024-07-20 17:09:51 +00:00
using System.Text.Json.Serialization;
using Questionable.Model.V1.Converter;
namespace Questionable.Model.V1;
[JsonConverter(typeof(QuestWorkConfigConverter))]
public sealed class QuestWorkValue(byte? high, byte? low)
{
public QuestWorkValue(byte value)
: this((byte)(value >> 4), (byte)(value & 0xF))
{
}
public byte? High { get; set; } = high;
public byte? Low { get; set; } = low;
}