AgGateway.ADAPT.ISOv4Plugin.ImportMappers.LogMappers.SectionMapper.Map C# (CSharp) Method

Map() public method

public Map ( List tims, List isoRecords ) : List
tims List
isoRecords List
return List
        public List<DeviceElementUse> Map(List<TIM> tims, List<ISOSpatialRow> isoRecords)
        {
            var sections = new List<DeviceElementUse>();

            foreach (var tim in tims)
            {
                var section = new DeviceElementUse();
                var meters = _meterMapper.Map(tim, isoRecords, section.Id.ReferenceId);
                section.GetWorkingDatas = () => meters;

                sections.Add(section);
            }

            return sections;
        }