gov.va.medora.mdo.dao.vista.CallBackFile.toRecords C# (CSharp) Method

toRecords() private method

private toRecords ( string response ) : void
response string
return void
        internal void toRecords(string[] response)
        {
            if (response == null || response.Length == 0)
            {
                return;
            }
            records = new List<CallBackFileRecord>(response.Length);
            for (int i = 0; i < response.Length; i++)
            {
                string[] flds = StringUtils.split(response[i], StringUtils.CARET);
                CallBackFileRecord rec = new CallBackFileRecord();
                rec.Fields["IEN"].VistaValue = flds[0];
                rec.Fields["CALLBACKTYPE"].VistaValue = flds[1];
                rec.Fields["CALLBACKPORT"].VistaValue = flds[2];
                rec.Fields["CALLBACKSERVER"].VistaValue = flds[3];
                rec.Fields["URLSTRING"].VistaValue = flds[4];
                records.Add(rec);
            }
        }