Files
imsInterface/interface/asm/dotnet/Oib3xMapper/generated_src/com.itac.oib.siplacesetupcenter.contracts.data/ComponentLocationStateMapper.cs
2025-06-06 09:15:13 +02:00

105 lines
5.7 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:02:34
using System;
using System.Collections.Generic;
using www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data;
namespace com.itac.oib.siplacesetupcenter.contracts.data
{
// source: assembly 3.2.0.152
// source: assembly ASM.AS.OIB.SIPLACESetupCenter.Contracts
public class ComponentLocationStateMapper:PackagingUnitLocationMapper
{
// 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.ComponentLocationState get(ComponentLocationState itacComponentLocationState)
{
if (itacComponentLocationState == null) { return null; }
www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState asmComponentLocationState = new www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState();
mapItac2Asm(asmComponentLocationState, itacComponentLocationState);
return asmComponentLocationState;
}
public static void mapItac2Asm(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState asmComponentLocationState, ComponentLocationState itacComponentLocationState)
{
asmComponentLocationState.MachineControllerState = itacComponentLocationState.MachineControllerState;
asmComponentLocationState.ValidationStatus = itacComponentLocationState.ValidationStatus;
}
// maps iTAC namespace conform array to ASM namespace array
public static www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState[] get(ComponentLocationState[] itacComponentLocationState)
{
if (itacComponentLocationState == null) { return null; }
www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState[] asmComponentLocationState = new www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState[itacComponentLocationState.Length];
for (int i = 0; i < itacComponentLocationState.Length; i++)
{
// to itac array
asmComponentLocationState[i] = ComponentLocationStateMapper.get(itacComponentLocationState[i]);
}
return asmComponentLocationState;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState> getList(ComponentLocationState[] asmComponentLocationState)
{
if (asmComponentLocationState == null) { return null; }
List<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState> itacComponentLocationState = new List<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState>();
for (int i = 0; i < asmComponentLocationState.Length; i++)
{
itacComponentLocationState.Add(ComponentLocationStateMapper.get(asmComponentLocationState[i]));
}
return itacComponentLocationState;
}
// map type from ASM namespace to iTAC namespace
public static ComponentLocationState get(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState asmComponentLocationState)
{
if (asmComponentLocationState == null) { return null; }
ComponentLocationState itacComponentLocationState = new ComponentLocationState();
mapAsm2Itac(asmComponentLocationState, itacComponentLocationState);
return itacComponentLocationState;
}
public static void mapAsm2Itac(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState asmComponentLocationState, ComponentLocationState itacComponentLocationState)
{
PackagingUnitLocationMapper.mapAsm2Itac(asmComponentLocationState, itacComponentLocationState);
itacComponentLocationState.MachineControllerState = asmComponentLocationState.MachineControllerState;
itacComponentLocationState.ValidationStatus = asmComponentLocationState.ValidationStatus;
}
// maps ASM namespace conform list to iTAC namespace array
public static ComponentLocationState[] getArray(IList<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState> asmComponentLocationState)
{
if (asmComponentLocationState == null) { return null; }
ComponentLocationState[] itacComponentLocationState = new ComponentLocationState[asmComponentLocationState.Count];
for (int i = 0; i < asmComponentLocationState.Count; i++)
{
itacComponentLocationState[i] = ComponentLocationStateMapper.get(asmComponentLocationState[i]);
}
return itacComponentLocationState;
}
// maps ASM namespace conform array to iTAC namespace array
public static ComponentLocationState[] getArray(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.ComponentLocationState[] asmComponentLocationState)
{
if (asmComponentLocationState == null) { return null; }
ComponentLocationState[] itacComponentLocationState = new ComponentLocationState[asmComponentLocationState.Length];
for (int i = 0; i < asmComponentLocationState.Length; i++)
{
itacComponentLocationState[i] = ComponentLocationStateMapper.get(asmComponentLocationState[i]);
}
return itacComponentLocationState;
}
}
}