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

131 lines
5.5 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 05.11.2018 14:52:23
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property Double, property in exclude list
// skip property Double, property in exclude list
using System;
using System.Collections.Generic;
namespace com.itac.oib.siplacepro.contracts.data
{
// source: assembly 5.1.0.84
// source: assembly ASM.AS.OIB.SIPLACEPro.Proxy
public class PanelMatrixMapper
{
// 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.Proxy.Business.Objects.PanelMatrix get(PanelMatrix itacPanelMatrix)
{
if (itacPanelMatrix == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix();
mapItac2Asm(asmPanelMatrix, itacPanelMatrix);
return asmPanelMatrix;
}
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix, PanelMatrix itacPanelMatrix)
{
// skip readonly property Panel
asmPanelMatrix.Rows = itacPanelMatrix.Rows;
asmPanelMatrix.Columns = itacPanelMatrix.Columns;
asmPanelMatrix.OriginalPanelPosX = itacPanelMatrix.OriginalPanelPosX;
asmPanelMatrix.OriginalPanelPosY = itacPanelMatrix.OriginalPanelPosY;
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
asmPanelMatrix.DuplicateId = itacPanelMatrix.DuplicateId;
asmPanelMatrix.RowsWithNameUpdate = itacPanelMatrix.RowsWithNameUpdate;
asmPanelMatrix.ColumnsWithNameUpdate = itacPanelMatrix.ColumnsWithNameUpdate;
asmPanelMatrix.Name = itacPanelMatrix.Name;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
}
// maps iTAC namespace conform array to ASM namespace array
public static Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[] get(PanelMatrix[] itacPanelMatrix)
{
if (itacPanelMatrix == null) { return null; }
Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[] asmPanelMatrix = new Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[itacPanelMatrix.Length];
for (int i = 0; i < itacPanelMatrix.Length; i++)
{
// to itac array
asmPanelMatrix[i] = PanelMatrixMapper.get(itacPanelMatrix[i]);
}
return asmPanelMatrix;
}
// maps iTAC namespace conform array to ASM namespace list
public static List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> getList(PanelMatrix[] asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> itacPanelMatrix = new List<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix>();
for (int i = 0; i < asmPanelMatrix.Length; i++)
{
itacPanelMatrix.Add(PanelMatrixMapper.get(asmPanelMatrix[i]));
}
return itacPanelMatrix;
}
// map type from ASM namespace to iTAC namespace
public static PanelMatrix get(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
PanelMatrix itacPanelMatrix = new PanelMatrix();
mapAsm2Itac(asmPanelMatrix, itacPanelMatrix);
return itacPanelMatrix;
}
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix asmPanelMatrix, PanelMatrix itacPanelMatrix)
{
itacPanelMatrix.Panel = com.itac.oib.siplacepro.contracts.data.PanelMapper.get(asmPanelMatrix.Panel);
// complex asm property Panel
itacPanelMatrix.Rows = asmPanelMatrix.Rows;
itacPanelMatrix.Columns = asmPanelMatrix.Columns;
itacPanelMatrix.OriginalPanelPosX = asmPanelMatrix.OriginalPanelPosX;
itacPanelMatrix.OriginalPanelPosY = asmPanelMatrix.OriginalPanelPosY;
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
// skip property DictionaryProxy`2, property in exclude list
itacPanelMatrix.DuplicateId = asmPanelMatrix.DuplicateId;
itacPanelMatrix.RowsWithNameUpdate = asmPanelMatrix.RowsWithNameUpdate;
itacPanelMatrix.ColumnsWithNameUpdate = asmPanelMatrix.ColumnsWithNameUpdate;
itacPanelMatrix.Name = asmPanelMatrix.Name;
// skip property Double, property in exclude list
// skip property Double, property in exclude list
}
// maps ASM namespace conform list to iTAC namespace array
public static PanelMatrix[] getArray(IList<Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix> asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
PanelMatrix[] itacPanelMatrix = new PanelMatrix[asmPanelMatrix.Count];
for (int i = 0; i < asmPanelMatrix.Count; i++)
{
itacPanelMatrix[i] = PanelMatrixMapper.get(asmPanelMatrix[i]);
}
return itacPanelMatrix;
}
// maps ASM namespace conform array to iTAC namespace array
public static PanelMatrix[] getArray(Asm.As.Oib.SiplacePro.Proxy.Business.Objects.PanelMatrix[] asmPanelMatrix)
{
if (asmPanelMatrix == null) { return null; }
PanelMatrix[] itacPanelMatrix = new PanelMatrix[asmPanelMatrix.Length];
for (int i = 0; i < asmPanelMatrix.Length; i++)
{
itacPanelMatrix[i] = PanelMatrixMapper.get(asmPanelMatrix[i]);
}
return itacPanelMatrix;
}
}
}