using System.Text;

namespace QCRPG.TSL.NFC.Packets;

public static class NciVersionInfo
{
	public static NciVersionEnum ValueToNciVersion(uint value)
	{
		if (value == 16)
		{
			return NciVersionEnum.NCI_VERSION_1_0;
		}
		return NciVersionEnum.InvalidNciVersionValue;
	}

	public static uint NciVersionToValue(NciVersionEnum enumItem)
	{
		if (enumItem == NciVersionEnum.NCI_VERSION_1_0)
		{
			return 16u;
		}
		return uint.MaxValue;
	}

	public static string NciVersionToString(NciVersionEnum enumItem)
	{
		if (enumItem == NciVersionEnum.NCI_VERSION_1_0)
		{
			return "NCI Version 1.0";
		}
		return "Invalid NciVersion Value";
	}

	public static string NciVersionToDescription()
	{
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.AppendLine("0x10 = NCI Version 1.0");
		return stringBuilder.ToString();
	}
}
