using QC.QTMXmlSchema;

namespace QC.XmlToDBPreProcess;

public class SessionData : IPreProcess
{
	public ConversionType ApplyPreProcessType(ref ROOT qtmXml, string[] Arguments)
	{
		ConversionType result = ConversionType.Session;
		if (Arguments != null)
		{
			foreach (string text in Arguments)
			{
				if (qtmXml.ConfigInfo.TESTERID == text || qtmXml.ConfigInfo.Result == text)
				{
					result = ConversionType.All;
				}
			}
		}
		return result;
	}
}
