/* * 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 06.11.2018 11:07:38 using System; using System.Collections.Generic; namespace com.itac.oib.siplacesetupcenter.contracts.data { // source: assembly 5.1.0.84 // source: assembly ASM.AS.OIB.SIPLACESetupCenter.Contracts public class NewSetupActiveReportMapper { // used for itac->asm: True // used for asm->itac: True // maps iTAC namespace conform type to ASM namespace type public static Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport get(NewSetupActiveReport itacNewSetupActiveReport) { if (itacNewSetupActiveReport == null) { return null; } Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport asmNewSetupActiveReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport(); mapItac2Asm(asmNewSetupActiveReport, itacNewSetupActiveReport); return asmNewSetupActiveReport; } public static void mapItac2Asm(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport asmNewSetupActiveReport, NewSetupActiveReport itacNewSetupActiveReport) { } // maps iTAC namespace conform array to ASM namespace array public static Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport[] get(NewSetupActiveReport[] itacNewSetupActiveReport) { if (itacNewSetupActiveReport == null) { return null; } Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport[] asmNewSetupActiveReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport[itacNewSetupActiveReport.Length]; for (int i = 0; i < itacNewSetupActiveReport.Length; i++) { // to itac array asmNewSetupActiveReport[i] = NewSetupActiveReportMapper.get(itacNewSetupActiveReport[i]); } return asmNewSetupActiveReport; } // maps iTAC namespace conform array to ASM namespace list public static List getList(NewSetupActiveReport[] asmNewSetupActiveReport) { if (asmNewSetupActiveReport == null) { return null; } List itacNewSetupActiveReport = new List(); for (int i = 0; i < asmNewSetupActiveReport.Length; i++) { itacNewSetupActiveReport.Add(NewSetupActiveReportMapper.get(asmNewSetupActiveReport[i])); } return itacNewSetupActiveReport; } // map type from ASM namespace to iTAC namespace public static NewSetupActiveReport get(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport asmNewSetupActiveReport) { if (asmNewSetupActiveReport == null) { return null; } NewSetupActiveReport itacNewSetupActiveReport = new NewSetupActiveReport(); mapAsm2Itac(asmNewSetupActiveReport, itacNewSetupActiveReport); return itacNewSetupActiveReport; } public static void mapAsm2Itac(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport asmNewSetupActiveReport, NewSetupActiveReport itacNewSetupActiveReport) { } // maps ASM namespace conform list to iTAC namespace array public static NewSetupActiveReport[] getArray(IList asmNewSetupActiveReport) { if (asmNewSetupActiveReport == null) { return null; } NewSetupActiveReport[] itacNewSetupActiveReport = new NewSetupActiveReport[asmNewSetupActiveReport.Count]; for (int i = 0; i < asmNewSetupActiveReport.Count; i++) { itacNewSetupActiveReport[i] = NewSetupActiveReportMapper.get(asmNewSetupActiveReport[i]); } return itacNewSetupActiveReport; } // maps ASM namespace conform array to iTAC namespace array public static NewSetupActiveReport[] getArray(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.NewSetupActiveReport[] asmNewSetupActiveReport) { if (asmNewSetupActiveReport == null) { return null; } NewSetupActiveReport[] itacNewSetupActiveReport = new NewSetupActiveReport[asmNewSetupActiveReport.Length]; for (int i = 0; i < asmNewSetupActiveReport.Length; i++) { itacNewSetupActiveReport[i] = NewSetupActiveReportMapper.get(asmNewSetupActiveReport[i]); } return itacNewSetupActiveReport; } } }