/// <summary> /// Standard constructor for the Link_Action_Response object. /// </summary> /// <param name="s">Status for the response.</param> /// <param name="scanR">List of Link_Scan_Rsp representing the scan results.</param> /// <param name="res">Result for the requested Link_Action</param> public Link_Action_Response(STATUS s, List<Link_Scan_Rsp> scanR, Link_Ac_Result res) { Status = s; ScanResults = scanR; Result = res; }
/// <summary> /// Constructor for the Link_Action_Response object. /// </summary> /// <param name="s">Status for the response.</param> /// <param name="scanR">List of serialized Link_Scan_Rsp objects.</param> /// <param name="res">Result for the requested Link_Action.</param> public Link_Action_Response(STATUS s, List<byte[]> scanR, Link_Ac_Result res) { Status = s; ScanResults = new List<Link_Scan_Rsp>(); foreach (byte[] bArray in scanR) { ScanResults.Add(new Link_Scan_Rsp(bArray)); } Result = res; }