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

63 lines
2.0 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 31.10.2018 08:16:46
using System;
using System.Collections.Generic;
namespace com.itac.oib.monitoring.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.Monitoring.Proxy
public class LineBaseMapper:MonitoringDataMapper
{
// used for itac->asm: True
// used for asm->itac: True
// maps iTAC namespace conform type to ASM namespace type
// map type from ASM namespace to iTAC namespace
public static LineBase get(Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.LineBase asmLineBase)
{
if (asmLineBase == null) { return null; }
LineBase itacLineBase = new LineBase();
mapAsm2Itac(asmLineBase, itacLineBase);
return itacLineBase;
}
public static void mapAsm2Itac(Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.LineBase asmLineBase, LineBase itacLineBase)
{
MonitoringDataMapper.mapAsm2Itac(asmLineBase, itacLineBase);
itacLineBase.FullPath = asmLineBase.FullPath;
}
// maps ASM namespace conform list to iTAC namespace array
public static LineBase[] getArray(IList<Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.LineBase> asmLineBase)
{
if (asmLineBase == null) { return null; }
LineBase[] itacLineBase = new LineBase[asmLineBase.Count];
for (int i = 0; i < asmLineBase.Count; i++)
{
itacLineBase[i] = LineBaseMapper.get(asmLineBase[i]);
}
return itacLineBase;
}
// maps ASM namespace conform array to iTAC namespace array
public static LineBase[] getArray(Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.LineBase[] asmLineBase)
{
if (asmLineBase == null) { return null; }
LineBase[] itacLineBase = new LineBase[asmLineBase.Length];
for (int i = 0; i < asmLineBase.Length; i++)
{
itacLineBase[i] = LineBaseMapper.get(asmLineBase[i]);
}
return itacLineBase;
}
}
}