/* * 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 02.11.2018 09:19:35 using System; using System.Collections.Generic; namespace com.itac.oib.linecontrol.contracts.data { // source: assembly 5.1.0.84 // source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts public class ComponentNotKnownAtAllMapper { // used for itac->asm: True // used for asm->itac: True // maps iTAC namespace conform type to ASM namespace type public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll get(ComponentNotKnownAtAll asmComponentNotKnownAtAll) { if (asmComponentNotKnownAtAll == null) { return null; } Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll itacComponentNotKnownAtAll = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll(); mapItac2Asm(itacComponentNotKnownAtAll, asmComponentNotKnownAtAll); return itacComponentNotKnownAtAll; } public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll itacComponentNotKnownAtAll, ComponentNotKnownAtAll asmComponentNotKnownAtAll) { itacComponentNotKnownAtAll.ComponentFullPath = asmComponentNotKnownAtAll.ComponentFullPath; } // maps iTAC namespace conform array to ASM namespace array public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] get(ComponentNotKnownAtAll[] asmComponentNotKnownAtAll) { if (asmComponentNotKnownAtAll == null) { return null; } Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] itacComponentNotKnownAtAll = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[asmComponentNotKnownAtAll.Length]; for (int i = 0; i < asmComponentNotKnownAtAll.Length; i++) { // to itac array itacComponentNotKnownAtAll[i] = ComponentNotKnownAtAllMapper.get(asmComponentNotKnownAtAll[i]); } return itacComponentNotKnownAtAll; } // maps iTAC namespace conform array to ASM namespace list public static List getList(ComponentNotKnownAtAll[] asmComponentNotKnownAtAll) { if (asmComponentNotKnownAtAll == null) { return null; } List itacComponentNotKnownAtAll = new List(); for (int i = 0; i < asmComponentNotKnownAtAll.Length; i++) { itacComponentNotKnownAtAll.Add(ComponentNotKnownAtAllMapper.get(asmComponentNotKnownAtAll[i])); } return itacComponentNotKnownAtAll; } // map type from ASM namespace to iTAC namespace public static ComponentNotKnownAtAll get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll) { if (asmComponentNotKnownAtAll == null) { return null; } ComponentNotKnownAtAll itacComponentNotKnownAtAll = new ComponentNotKnownAtAll(); mapAsm2Itac(asmComponentNotKnownAtAll, itacComponentNotKnownAtAll); return itacComponentNotKnownAtAll; } public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll, ComponentNotKnownAtAll itacComponentNotKnownAtAll) { itacComponentNotKnownAtAll.ComponentFullPath = asmComponentNotKnownAtAll.ComponentFullPath; } // maps ASM namespace conform list to iTAC namespace array public static ComponentNotKnownAtAll[] getArray(IList asmComponentNotKnownAtAll) { if (asmComponentNotKnownAtAll == null) { return null; } ComponentNotKnownAtAll[] itacComponentNotKnownAtAll = new ComponentNotKnownAtAll[asmComponentNotKnownAtAll.Count]; for (int i = 0; i < asmComponentNotKnownAtAll.Count; i++) { itacComponentNotKnownAtAll[i] = ComponentNotKnownAtAllMapper.get(asmComponentNotKnownAtAll[i]); } return itacComponentNotKnownAtAll; } // maps ASM namespace conform array to iTAC namespace array public static ComponentNotKnownAtAll[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] asmComponentNotKnownAtAll) { if (asmComponentNotKnownAtAll == null) { return null; } ComponentNotKnownAtAll[] itacComponentNotKnownAtAll = new ComponentNotKnownAtAll[asmComponentNotKnownAtAll.Length]; for (int i = 0; i < asmComponentNotKnownAtAll.Length; i++) { itacComponentNotKnownAtAll[i] = ComponentNotKnownAtAllMapper.get(asmComponentNotKnownAtAll[i]); } return itacComponentNotKnownAtAll; } } }