using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using QC.CTDS.DM.DataStructures.FormatDescriptorStructure;

namespace QC.CTDS.DM.DataStructures.LimitDescriptorDataStructure;

[Serializable]
public class OutputGroupLimitDescriptorResult : DiscriminatorElement
{
	private Limits limits = new Limits();

	private string _resID;

	private string _testID;

	[XmlElement("Limits", Form = XmlSchemaForm.Unqualified)]
	public Limits Limits
	{
		get
		{
			return limits;
		}
		set
		{
			limits = value;
		}
	}

	[XmlAttribute]
	public string resID
	{
		get
		{
			return _resID.Trim();
		}
		set
		{
			if (!(_resID == value))
			{
				_resID = value;
			}
		}
	}

	[XmlAttribute]
	public string testID
	{
		get
		{
			return _testID.Trim();
		}
		set
		{
			if (!(_testID == value))
			{
				_testID = value;
			}
		}
	}

	public OutputGroupLimitDescriptorResult()
	{
	}

	public OutputGroupLimitDescriptorResult(OutputGroupLimitDescriptorResult resultSet)
		: base(resultSet)
	{
		_resID = resultSet._resID;
		_testID = resultSet._testID;
		limits = new Limits(resultSet.Limits);
	}
}
