97 lines
4.7 KiB
C#
97 lines
4.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;
|
|
|
|
namespace com.itac.oib.siplacesetupcenter.contracts.data
|
|
{
|
|
// source: assembly 3.2.0.152
|
|
// source: assembly ASM.AS.OIB.SIPLACESetupCenter.Contracts
|
|
public class TablePlacedReportMapper
|
|
{
|
|
// 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.TablePlacedReport get(TablePlacedReport itacTablePlacedReport)
|
|
{
|
|
if (itacTablePlacedReport == null) { return null; }
|
|
www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport asmTablePlacedReport = new www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport();
|
|
mapItac2Asm(asmTablePlacedReport, itacTablePlacedReport);
|
|
return asmTablePlacedReport;
|
|
}
|
|
|
|
public static void mapItac2Asm(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport asmTablePlacedReport, TablePlacedReport itacTablePlacedReport)
|
|
{
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace array
|
|
public static www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport[] get(TablePlacedReport[] itacTablePlacedReport)
|
|
{
|
|
if (itacTablePlacedReport == null) { return null; }
|
|
www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport[] asmTablePlacedReport = new www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport[itacTablePlacedReport.Length];
|
|
for (int i = 0; i < itacTablePlacedReport.Length; i++)
|
|
{
|
|
// to itac array
|
|
asmTablePlacedReport[i] = TablePlacedReportMapper.get(itacTablePlacedReport[i]);
|
|
}
|
|
return asmTablePlacedReport;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace list
|
|
public static List<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport> getList(TablePlacedReport[] asmTablePlacedReport)
|
|
{
|
|
if (asmTablePlacedReport == null) { return null; }
|
|
List<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport> itacTablePlacedReport = new List<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport>();
|
|
for (int i = 0; i < asmTablePlacedReport.Length; i++)
|
|
{
|
|
itacTablePlacedReport.Add(TablePlacedReportMapper.get(asmTablePlacedReport[i]));
|
|
}
|
|
return itacTablePlacedReport;
|
|
}
|
|
|
|
// map type from ASM namespace to iTAC namespace
|
|
public static TablePlacedReport get(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport asmTablePlacedReport)
|
|
{
|
|
if (asmTablePlacedReport == null) { return null; }
|
|
TablePlacedReport itacTablePlacedReport = new TablePlacedReport();
|
|
mapAsm2Itac(asmTablePlacedReport, itacTablePlacedReport);
|
|
return itacTablePlacedReport;
|
|
}
|
|
|
|
public static void mapAsm2Itac(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport asmTablePlacedReport, TablePlacedReport itacTablePlacedReport)
|
|
{
|
|
}
|
|
|
|
// maps ASM namespace conform list to iTAC namespace array
|
|
public static TablePlacedReport[] getArray(IList<www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport> asmTablePlacedReport)
|
|
{
|
|
if (asmTablePlacedReport == null) { return null; }
|
|
TablePlacedReport[] itacTablePlacedReport = new TablePlacedReport[asmTablePlacedReport.Count];
|
|
for (int i = 0; i < asmTablePlacedReport.Count; i++)
|
|
{
|
|
itacTablePlacedReport[i] = TablePlacedReportMapper.get(asmTablePlacedReport[i]);
|
|
}
|
|
return itacTablePlacedReport;
|
|
}
|
|
|
|
// maps ASM namespace conform array to iTAC namespace array
|
|
public static TablePlacedReport[] getArray(www.siplace.com.OIB._2008._05.SetupCenter.Contracts.Data.TablePlacedReport[] asmTablePlacedReport)
|
|
{
|
|
if (asmTablePlacedReport == null) { return null; }
|
|
TablePlacedReport[] itacTablePlacedReport = new TablePlacedReport[asmTablePlacedReport.Length];
|
|
for (int i = 0; i < asmTablePlacedReport.Length; i++)
|
|
{
|
|
itacTablePlacedReport[i] = TablePlacedReportMapper.get(asmTablePlacedReport[i]);
|
|
}
|
|
return itacTablePlacedReport;
|
|
}
|
|
}
|
|
}
|