101 lines
5.8 KiB
C#
101 lines
5.8 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 PrinterToolUnverifiedReportMapper
|
|
{
|
|
// 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.PrinterToolUnverifiedReport get(PrinterToolUnverifiedReport itacPrinterToolUnverifiedReport)
|
|
{
|
|
if (itacPrinterToolUnverifiedReport == null) { return null; }
|
|
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport asmPrinterToolUnverifiedReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport();
|
|
mapItac2Asm(asmPrinterToolUnverifiedReport, itacPrinterToolUnverifiedReport);
|
|
return asmPrinterToolUnverifiedReport;
|
|
}
|
|
|
|
public static void mapItac2Asm(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport asmPrinterToolUnverifiedReport, PrinterToolUnverifiedReport itacPrinterToolUnverifiedReport)
|
|
{
|
|
// complex property PrinterTool, isArray:False, isGeneric:False
|
|
asmPrinterToolUnverifiedReport.PrinterTool = com.itac.oib.siplacesetupcenter.contracts.data.PrinterToolMapper.get( itacPrinterToolUnverifiedReport.PrinterTool);
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace array
|
|
public static Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport[] get(PrinterToolUnverifiedReport[] itacPrinterToolUnverifiedReport)
|
|
{
|
|
if (itacPrinterToolUnverifiedReport == null) { return null; }
|
|
Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport[] asmPrinterToolUnverifiedReport = new Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport[itacPrinterToolUnverifiedReport.Length];
|
|
for (int i = 0; i < itacPrinterToolUnverifiedReport.Length; i++)
|
|
{
|
|
// to itac array
|
|
asmPrinterToolUnverifiedReport[i] = PrinterToolUnverifiedReportMapper.get(itacPrinterToolUnverifiedReport[i]);
|
|
}
|
|
return asmPrinterToolUnverifiedReport;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace list
|
|
public static List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport> getList(PrinterToolUnverifiedReport[] asmPrinterToolUnverifiedReport)
|
|
{
|
|
if (asmPrinterToolUnverifiedReport == null) { return null; }
|
|
List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport> itacPrinterToolUnverifiedReport = new List<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport>();
|
|
for (int i = 0; i < asmPrinterToolUnverifiedReport.Length; i++)
|
|
{
|
|
itacPrinterToolUnverifiedReport.Add(PrinterToolUnverifiedReportMapper.get(asmPrinterToolUnverifiedReport[i]));
|
|
}
|
|
return itacPrinterToolUnverifiedReport;
|
|
}
|
|
|
|
// map type from ASM namespace to iTAC namespace
|
|
public static PrinterToolUnverifiedReport get(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport asmPrinterToolUnverifiedReport)
|
|
{
|
|
if (asmPrinterToolUnverifiedReport == null) { return null; }
|
|
PrinterToolUnverifiedReport itacPrinterToolUnverifiedReport = new PrinterToolUnverifiedReport();
|
|
mapAsm2Itac(asmPrinterToolUnverifiedReport, itacPrinterToolUnverifiedReport);
|
|
return itacPrinterToolUnverifiedReport;
|
|
}
|
|
|
|
public static void mapAsm2Itac(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport asmPrinterToolUnverifiedReport, PrinterToolUnverifiedReport itacPrinterToolUnverifiedReport)
|
|
{
|
|
itacPrinterToolUnverifiedReport.PrinterTool = com.itac.oib.siplacesetupcenter.contracts.data.PrinterToolMapper.get(asmPrinterToolUnverifiedReport.PrinterTool);
|
|
// complex asm property PrinterTool
|
|
}
|
|
|
|
// maps ASM namespace conform list to iTAC namespace array
|
|
public static PrinterToolUnverifiedReport[] getArray(IList<Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport> asmPrinterToolUnverifiedReport)
|
|
{
|
|
if (asmPrinterToolUnverifiedReport == null) { return null; }
|
|
PrinterToolUnverifiedReport[] itacPrinterToolUnverifiedReport = new PrinterToolUnverifiedReport[asmPrinterToolUnverifiedReport.Count];
|
|
for (int i = 0; i < asmPrinterToolUnverifiedReport.Count; i++)
|
|
{
|
|
itacPrinterToolUnverifiedReport[i] = PrinterToolUnverifiedReportMapper.get(asmPrinterToolUnverifiedReport[i]);
|
|
}
|
|
return itacPrinterToolUnverifiedReport;
|
|
}
|
|
|
|
// maps ASM namespace conform array to iTAC namespace array
|
|
public static PrinterToolUnverifiedReport[] getArray(Asm.As.Oib.SiplaceSetupCenter.Contracts.Data.PrinterToolUnverifiedReport[] asmPrinterToolUnverifiedReport)
|
|
{
|
|
if (asmPrinterToolUnverifiedReport == null) { return null; }
|
|
PrinterToolUnverifiedReport[] itacPrinterToolUnverifiedReport = new PrinterToolUnverifiedReport[asmPrinterToolUnverifiedReport.Length];
|
|
for (int i = 0; i < asmPrinterToolUnverifiedReport.Length; i++)
|
|
{
|
|
itacPrinterToolUnverifiedReport[i] = PrinterToolUnverifiedReportMapper.get(asmPrinterToolUnverifiedReport[i]);
|
|
}
|
|
return itacPrinterToolUnverifiedReport;
|
|
}
|
|
}
|
|
}
|