using System;
using System.ComponentModel;
using System.Xml.Serialization;
using QC.QSPRLogSchema;

namespace QC.QTMXmlSchema;

[Serializable]
[XmlType(AnonymousType = true)]
[DesignerCategory("code")]
public class Config
{
	private string uUT_SNField;

	private string mCNField;

	private string wORKSTATIONField;

	private string tESTERIDField;

	private string extendedDataField;

	private ROOTConfigInfo[] informationField;

	private string runTitleField;

	private string startTimeField;

	private string sW_MCNField;

	private string sW_VERField;

	private string treeIDField;

	private object machineNameField;

	private string stopTimeField;

	private string resultField;

	private string sessionNameField;

	private string sessionDataRIDField;

	private string commentsField;

	private string treeTypeField;

	private string reConvertField;

	private string databaseField;

	private string serverField;

	private string eRROR_CODEField;

	private string treeFileNameField;

	private string tpByVersionRIDField;

	public RunInfo RunInfo;

	public string UUT_SN
	{
		get
		{
			return uUT_SNField;
		}
		set
		{
			uUT_SNField = value;
		}
	}

	public string MCN
	{
		get
		{
			return mCNField;
		}
		set
		{
			mCNField = value;
		}
	}

	public string WORKSTATION
	{
		get
		{
			return wORKSTATIONField;
		}
		set
		{
			wORKSTATIONField = value;
		}
	}

	public string TESTERID
	{
		get
		{
			return tESTERIDField;
		}
		set
		{
			tESTERIDField = value;
		}
	}

	public string ExtendedData
	{
		get
		{
			return extendedDataField;
		}
		set
		{
			extendedDataField = value;
		}
	}

	public string SessionDataGUID { get; set; }

	public string IsRunning { get; set; }

	[XmlArrayItem("Info", IsNullable = false)]
	public ROOTConfigInfo[] Information
	{
		get
		{
			return informationField;
		}
		set
		{
			informationField = value;
		}
	}

	public string RunTitle
	{
		get
		{
			return runTitleField;
		}
		set
		{
			runTitleField = value;
		}
	}

	public string StartTime
	{
		get
		{
			return startTimeField;
		}
		set
		{
			startTimeField = value;
		}
	}

	public string SW_MCN
	{
		get
		{
			return sW_MCNField;
		}
		set
		{
			sW_MCNField = value;
		}
	}

	public string SW_VER
	{
		get
		{
			return sW_VERField;
		}
		set
		{
			sW_VERField = value;
		}
	}

	public string TreeID
	{
		get
		{
			return treeIDField;
		}
		set
		{
			treeIDField = value;
		}
	}

	public object MachineName
	{
		get
		{
			return machineNameField;
		}
		set
		{
			machineNameField = value;
		}
	}

	public string StopTime
	{
		get
		{
			return stopTimeField;
		}
		set
		{
			stopTimeField = value;
		}
	}

	public string Result
	{
		get
		{
			return resultField;
		}
		set
		{
			resultField = value;
		}
	}

	public string SessionName
	{
		get
		{
			return sessionNameField;
		}
		set
		{
			sessionNameField = value;
		}
	}

	[DefaultValue("")]
	public string SessionDataRID
	{
		get
		{
			return sessionDataRIDField;
		}
		set
		{
			sessionDataRIDField = value;
		}
	}

	public string TPByVerRID
	{
		get
		{
			return tpByVersionRIDField;
		}
		set
		{
			tpByVersionRIDField = value;
		}
	}

	public string Comments
	{
		get
		{
			return commentsField;
		}
		set
		{
			commentsField = value;
		}
	}

	public string TreeType
	{
		get
		{
			return treeTypeField;
		}
		set
		{
			treeTypeField = value;
		}
	}

	public string ReConvert
	{
		get
		{
			return reConvertField;
		}
		set
		{
			reConvertField = value;
		}
	}

	public string Database
	{
		get
		{
			return databaseField;
		}
		set
		{
			databaseField = value;
		}
	}

	public string Server
	{
		get
		{
			return serverField;
		}
		set
		{
			serverField = value;
		}
	}

	[DefaultValue("")]
	public string ERROR_CODE
	{
		get
		{
			return eRROR_CODEField;
		}
		set
		{
			eRROR_CODEField = value;
		}
	}

	[DefaultValue("")]
	public string TreeFileName
	{
		get
		{
			return treeFileNameField;
		}
		set
		{
			treeFileNameField = value;
		}
	}

	public bool ShouldSerializeTestConfig()
	{
		return RunInfo != null;
	}

	public Config()
	{
		sessionDataRIDField = "";
		databaseField = "";
		serverField = "";
		eRROR_CODEField = "";
		treeFileNameField = string.Empty;
	}
}
