using System;
using System.Xml.Serialization;

namespace Qualcomm_ModemRFA;

public class Device_Selection
{
	[XmlElement]
	public int Master_Device_ID;

	[XmlElement]
	public int Tx_Device_To_Calibrate;

	[XmlElement]
	public string Rx_Device_To_Calibrate;

	public int getNumOfRxDevice()
	{
		string[] array = Rx_Device_To_Calibrate.Split(',');
		return array.Length;
	}

	public int GetRxDeviceID(int chain)
	{
		string[] array = Rx_Device_To_Calibrate.Split(',');
		for (int i = 0; i < array.Length; i++)
		{
			short num = Convert.ToInt16(array[i]);
			if (chain == num)
			{
				return num;
			}
		}
		return -1;
	}
}
