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

65 lines
2.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 31.10.2018 08:16:46
using System;
using System.Collections.Generic;
using com.itac.oib.monitoring.contracts.data;
namespace com.itac.oib.monitoring.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.Monitoring.Proxy
public class RecipeBaseMapper: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 RecipeBase get(Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.RecipeBase asmRecipeBase)
{
if (asmRecipeBase == null) { return null; }
RecipeBase itacRecipeBase = new RecipeBase();
mapAsm2Itac(asmRecipeBase, itacRecipeBase);
return itacRecipeBase;
}
public static void mapAsm2Itac(Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.RecipeBase asmRecipeBase, RecipeBase itacRecipeBase)
{
MonitoringDataMapper.mapAsm2Itac(asmRecipeBase, itacRecipeBase);
itacRecipeBase.Station = com.itac.oib.monitoring.contracts.data.StationMapper.get(asmRecipeBase.Station);
// complex asm property Station
}
// maps ASM namespace conform list to iTAC namespace array
public static RecipeBase[] getArray(IList<Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.RecipeBase> asmRecipeBase)
{
if (asmRecipeBase == null) { return null; }
RecipeBase[] itacRecipeBase = new RecipeBase[asmRecipeBase.Count];
for (int i = 0; i < asmRecipeBase.Count; i++)
{
itacRecipeBase[i] = RecipeBaseMapper.get(asmRecipeBase[i]);
}
return itacRecipeBase;
}
// maps ASM namespace conform array to iTAC namespace array
public static RecipeBase[] getArray(Asm.As.Oib.Monitoring.Proxy.Business.BaseClasses.RecipeBase[] asmRecipeBase)
{
if (asmRecipeBase == null) { return null; }
RecipeBase[] itacRecipeBase = new RecipeBase[asmRecipeBase.Length];
for (int i = 0; i < asmRecipeBase.Length; i++)
{
itacRecipeBase[i] = RecipeBaseMapper.get(asmRecipeBase[i]);
}
return itacRecipeBase;
}
}
}