using System.Text;

namespace QCRPG.TSL.BT.Packets;

public static class CommandStatusInfo
{
	public static CommandStatusEnum ValueToCommandStatus(uint value)
	{
		if (value == 0)
		{
			return CommandStatusEnum.PENDING;
		}
		return CommandStatusEnum.InvalidCommandStatusValue;
	}

	public static uint CommandStatusToValue(CommandStatusEnum enumItem)
	{
		if (enumItem == CommandStatusEnum.PENDING)
		{
			return 0u;
		}
		return uint.MaxValue;
	}

	public static string CommandStatusToString(CommandStatusEnum enumItem)
	{
		if (enumItem == CommandStatusEnum.PENDING)
		{
			return "PENDING";
		}
		return "Invalid CommandStatus Value";
	}

	public static string CommandStatusToDescription()
	{
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.AppendLine("0x0 = PENDING");
		return stringBuilder.ToString();
	}
}
