using System;
using QCRPG.Framework;

namespace QCRPG.TSL.FM.Packets;

public class ReadTuneStatus : PacketBase
{
	private Type[] expectedResponseTypes = new Type[1] { typeof(ReadI2cResponse) };

	private PacketInfoBase info;

	public override PacketType Type => PacketType.Command;

	public override Type[] ExpectedResponseTypes => expectedResponseTypes;

	public override PacketInfoBase Info
	{
		get
		{
			if (info == null)
			{
				info = new ReadTuneStatusInfo(this);
			}
			return info;
		}
	}

	protected override bool FromBitBuilder(ref BitBuilder bitBuilder)
	{
		if (bitBuilder.GetNumberOfBits() > 7)
		{
			return false;
		}
		return true;
	}

	public override string ToBitString()
	{
		BitBuilder bitBuilder = new BitBuilder();
		return bitBuilder.ToString();
	}
}
