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

100 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 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 LockFeederLocationInfoMapper:FeederLocationMapper
{
// 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.LockFeederLocationInfo get(LockFeederLocationInfo itacLockFeederLocationInfo)
{
if (itacLockFeederLocationInfo == null) { return null; }
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo asmLockFeederLocationInfo = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo();
mapItac2Asm(asmLockFeederLocationInfo, itacLockFeederLocationInfo);
return asmLockFeederLocationInfo;
}
public static void mapItac2Asm(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo asmLockFeederLocationInfo, LockFeederLocationInfo itacLockFeederLocationInfo)
{
asmLockFeederLocationInfo.Reason = itacLockFeederLocationInfo.Reason;
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo[] get(LockFeederLocationInfo[] itacLockFeederLocationInfo)
{
if (itacLockFeederLocationInfo == null) { return null; }
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo[] asmLockFeederLocationInfo = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo[itacLockFeederLocationInfo.Length];
for (int i = 0; i < itacLockFeederLocationInfo.Length; i++)
{
// to itac array
asmLockFeederLocationInfo[i] = LockFeederLocationInfoMapper.get(itacLockFeederLocationInfo[i]);
}
return asmLockFeederLocationInfo;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo> getList(LockFeederLocationInfo[] asmLockFeederLocationInfo)
{
if (asmLockFeederLocationInfo == null) { return null; }
List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo> itacLockFeederLocationInfo = new List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo>();
for (int i = 0; i < asmLockFeederLocationInfo.Length; i++)
{
itacLockFeederLocationInfo.Add(LockFeederLocationInfoMapper.get(asmLockFeederLocationInfo[i]));
}
return itacLockFeederLocationInfo;
}
// map type from ASM namespace to iTAC namespace
public static LockFeederLocationInfo get(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo asmLockFeederLocationInfo)
{
if (asmLockFeederLocationInfo == null) { return null; }
LockFeederLocationInfo itacLockFeederLocationInfo = new LockFeederLocationInfo();
mapAsm2Itac(asmLockFeederLocationInfo, itacLockFeederLocationInfo);
return itacLockFeederLocationInfo;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo asmLockFeederLocationInfo, LockFeederLocationInfo itacLockFeederLocationInfo)
{
FeederLocationMapper.mapAsm2Itac(asmLockFeederLocationInfo, itacLockFeederLocationInfo);
itacLockFeederLocationInfo.Reason = asmLockFeederLocationInfo.Reason;
}
// maps ASM namespace conform list to iTAC namespace array
public static LockFeederLocationInfo[] getArray(IList<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo> asmLockFeederLocationInfo)
{
if (asmLockFeederLocationInfo == null) { return null; }
LockFeederLocationInfo[] itacLockFeederLocationInfo = new LockFeederLocationInfo[asmLockFeederLocationInfo.Count];
for (int i = 0; i < asmLockFeederLocationInfo.Count; i++)
{
itacLockFeederLocationInfo[i] = LockFeederLocationInfoMapper.get(asmLockFeederLocationInfo[i]);
}
return itacLockFeederLocationInfo;
}
// maps ASM namespace conform array to iTAC namespace array
public static LockFeederLocationInfo[] getArray(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.LockFeederLocationInfo[] asmLockFeederLocationInfo)
{
if (asmLockFeederLocationInfo == null) { return null; }
LockFeederLocationInfo[] itacLockFeederLocationInfo = new LockFeederLocationInfo[asmLockFeederLocationInfo.Length];
for (int i = 0; i < asmLockFeederLocationInfo.Length; i++)
{
itacLockFeederLocationInfo[i] = LockFeederLocationInfoMapper.get(asmLockFeederLocationInfo[i]);
}
return itacLockFeederLocationInfo;
}
}
}