/* * Copyright (c) 2018 iTAC Software AG, Germany. All Rights Reserved. * * This software is protected by copyright. Under no circumstances may any part of this file in any form be copied, * printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language * without the written permission of iTAC Software AG. */ // created 23.11.2018 08:02:34 using System; using System.Collections.Generic; namespace com.itac.oib.siplacesetupcenter.contracts.data { // source: assembly 3.2.0.152 // source: assembly ASM.AS.OIB.SIPLACESetupCenter.Contracts public class PackagingUnitDeletedReportMapper { // used for itac->asm: True // used for asm->itac: True // maps iTAC namespace conform type to ASM namespace type public static www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport get(PackagingUnitDeletedReport itacPackagingUnitDeletedReport) { if (itacPackagingUnitDeletedReport == null) { return null; } www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport = new www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport(); mapItac2Asm(asmPackagingUnitDeletedReport, itacPackagingUnitDeletedReport); return asmPackagingUnitDeletedReport; } public static void mapItac2Asm(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport, PackagingUnitDeletedReport itacPackagingUnitDeletedReport) { } // maps iTAC namespace conform array to ASM namespace array public static www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport[] get(PackagingUnitDeletedReport[] itacPackagingUnitDeletedReport) { if (itacPackagingUnitDeletedReport == null) { return null; } www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport[] asmPackagingUnitDeletedReport = new www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport[itacPackagingUnitDeletedReport.Length]; for (int i = 0; i < itacPackagingUnitDeletedReport.Length; i++) { // to itac array asmPackagingUnitDeletedReport[i] = PackagingUnitDeletedReportMapper.get(itacPackagingUnitDeletedReport[i]); } return asmPackagingUnitDeletedReport; } // maps iTAC namespace conform array to ASM namespace list public static List getList(PackagingUnitDeletedReport[] asmPackagingUnitDeletedReport) { if (asmPackagingUnitDeletedReport == null) { return null; } List itacPackagingUnitDeletedReport = new List(); for (int i = 0; i < asmPackagingUnitDeletedReport.Length; i++) { itacPackagingUnitDeletedReport.Add(PackagingUnitDeletedReportMapper.get(asmPackagingUnitDeletedReport[i])); } return itacPackagingUnitDeletedReport; } // map type from ASM namespace to iTAC namespace public static PackagingUnitDeletedReport get(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport) { if (asmPackagingUnitDeletedReport == null) { return null; } PackagingUnitDeletedReport itacPackagingUnitDeletedReport = new PackagingUnitDeletedReport(); mapAsm2Itac(asmPackagingUnitDeletedReport, itacPackagingUnitDeletedReport); return itacPackagingUnitDeletedReport; } public static void mapAsm2Itac(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport asmPackagingUnitDeletedReport, PackagingUnitDeletedReport itacPackagingUnitDeletedReport) { } // maps ASM namespace conform list to iTAC namespace array public static PackagingUnitDeletedReport[] getArray(IList asmPackagingUnitDeletedReport) { if (asmPackagingUnitDeletedReport == null) { return null; } PackagingUnitDeletedReport[] itacPackagingUnitDeletedReport = new PackagingUnitDeletedReport[asmPackagingUnitDeletedReport.Count]; for (int i = 0; i < asmPackagingUnitDeletedReport.Count; i++) { itacPackagingUnitDeletedReport[i] = PackagingUnitDeletedReportMapper.get(asmPackagingUnitDeletedReport[i]); } return itacPackagingUnitDeletedReport; } // maps ASM namespace conform array to iTAC namespace array public static PackagingUnitDeletedReport[] getArray(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.PackagingUnitDeletedReport[] asmPackagingUnitDeletedReport) { if (asmPackagingUnitDeletedReport == null) { return null; } PackagingUnitDeletedReport[] itacPackagingUnitDeletedReport = new PackagingUnitDeletedReport[asmPackagingUnitDeletedReport.Length]; for (int i = 0; i < asmPackagingUnitDeletedReport.Length; i++) { itacPackagingUnitDeletedReport[i] = PackagingUnitDeletedReportMapper.get(asmPackagingUnitDeletedReport[i]); } return itacPackagingUnitDeletedReport; } } }