using System.Text.RegularExpressions;

namespace QFDT;

internal class ProductID
{
	private Regex regEx;

	public string m_productName;

	private string mpss_version;

	private int m_RFHWID;

	public ProductID(string ProductName, string MPSS_version, int RFHWID)
	{
		m_productName = ProductName;
		mpss_version = MPSS_version;
		m_RFHWID = RFHWID;
		regEx = new Regex(MPSS_version);
	}

	public bool IsMatch(string mpss, int RFHWID)
	{
		if (regEx.IsMatch(mpss) && RFHWID == m_RFHWID)
		{
			return true;
		}
		return false;
	}
}
