Files
2025-06-06 09:15:13 +02:00

99 lines
5.2 KiB
C#

/*
* 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:10:38
using System;
using System.Collections.Generic;
namespace com.itac.oib.linecontrol.contracts.data
{
// source: assembly 3.2.0.152
// 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 itacComponentNotKnownAtAll)
{
if (itacComponentNotKnownAtAll == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll();
mapItac2Asm(asmComponentNotKnownAtAll, itacComponentNotKnownAtAll);
return asmComponentNotKnownAtAll;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll asmComponentNotKnownAtAll, ComponentNotKnownAtAll itacComponentNotKnownAtAll)
{
asmComponentNotKnownAtAll.ComponentFullPath = itacComponentNotKnownAtAll.ComponentFullPath;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] get(ComponentNotKnownAtAll[] itacComponentNotKnownAtAll)
{
if (itacComponentNotKnownAtAll == null) { return null; }
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[] asmComponentNotKnownAtAll = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll[itacComponentNotKnownAtAll.Length];
for (int i = 0; i < itacComponentNotKnownAtAll.Length; i++)
{
// to itac array
asmComponentNotKnownAtAll[i] = ComponentNotKnownAtAllMapper.get(itacComponentNotKnownAtAll[i]);
}
return asmComponentNotKnownAtAll;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> getList(ComponentNotKnownAtAll[] asmComponentNotKnownAtAll)
{
if (asmComponentNotKnownAtAll == null) { return null; }
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> itacComponentNotKnownAtAll = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll>();
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<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.ComponentNotKnownAtAll> 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;
}
}
}