namespace QCRPG.Framework;

public class ConnectionStateChangeInfo : IDeepCopyable<ConnectionStateChangeInfo>
{
	public bool openStateChanged;

	public bool openState;

	public bool portNameChanged;

	public string portName = "";

	public bool dataRateChanged;

	public int dataRate;

	public bool slaveAddressChanged;

	public byte slaveAddress;

	public ConnectionStateChangeInfo DeepCopy()
	{
		ConnectionStateChangeInfo connectionStateChangeInfo = new ConnectionStateChangeInfo();
		connectionStateChangeInfo.openStateChanged = openStateChanged;
		connectionStateChangeInfo.openState = openState;
		connectionStateChangeInfo.portNameChanged = portNameChanged;
		connectionStateChangeInfo.portName = portName;
		connectionStateChangeInfo.dataRateChanged = dataRateChanged;
		connectionStateChangeInfo.dataRate = dataRate;
		connectionStateChangeInfo.slaveAddressChanged = slaveAddressChanged;
		connectionStateChangeInfo.slaveAddress = slaveAddress;
		return connectionStateChangeInfo;
	}
}
