using System.Text;

namespace QCRPG.TSL.BT.Packets;

public static class DefaultHoldModeActivityInfo
{
	public static DefaultHoldModeActivityEnum ValueToDefaultHoldModeActivity(uint value)
	{
		if (value == 0)
		{
			return DefaultHoldModeActivityEnum.Maintain_current_Power_State;
		}
		return DefaultHoldModeActivityEnum.InvalidDefaultHoldModeActivityValue;
	}

	public static uint DefaultHoldModeActivityToValue(DefaultHoldModeActivityEnum enumItem)
	{
		if (enumItem == DefaultHoldModeActivityEnum.Maintain_current_Power_State)
		{
			return 0u;
		}
		return uint.MaxValue;
	}

	public static string DefaultHoldModeActivityToString(DefaultHoldModeActivityEnum enumItem)
	{
		if (enumItem == DefaultHoldModeActivityEnum.Maintain_current_Power_State)
		{
			return "Maintain current Power State";
		}
		return "Invalid DefaultHoldModeActivity Value";
	}

	public static string DefaultHoldModeActivityToDescription()
	{
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.AppendLine("0x0 = Maintain current Power State");
		return stringBuilder.ToString();
	}
}
