97 lines
4.4 KiB
C#
97 lines
4.4 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:10:38
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace com.itac.oib.linecontrol.contracts.data
|
|
{
|
|
// source: assembly 3.2.0.152
|
|
// source: assembly ASM.AS.OIB.SIPLACEPro.LineControl.Contracts
|
|
public class DownloadReportMapper
|
|
{
|
|
// 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.LineControl.Contracts.Data.DownloadReport get(DownloadReport itacDownloadReport)
|
|
{
|
|
if (itacDownloadReport == null) { return null; }
|
|
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport();
|
|
mapItac2Asm(asmDownloadReport, itacDownloadReport);
|
|
return asmDownloadReport;
|
|
}
|
|
|
|
public static void mapItac2Asm(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport, DownloadReport itacDownloadReport)
|
|
{
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace array
|
|
public static Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[] get(DownloadReport[] itacDownloadReport)
|
|
{
|
|
if (itacDownloadReport == null) { return null; }
|
|
Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[] asmDownloadReport = new Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[itacDownloadReport.Length];
|
|
for (int i = 0; i < itacDownloadReport.Length; i++)
|
|
{
|
|
// to itac array
|
|
asmDownloadReport[i] = DownloadReportMapper.get(itacDownloadReport[i]);
|
|
}
|
|
return asmDownloadReport;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace list
|
|
public static List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport> getList(DownloadReport[] asmDownloadReport)
|
|
{
|
|
if (asmDownloadReport == null) { return null; }
|
|
List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport> itacDownloadReport = new List<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport>();
|
|
for (int i = 0; i < asmDownloadReport.Length; i++)
|
|
{
|
|
itacDownloadReport.Add(DownloadReportMapper.get(asmDownloadReport[i]));
|
|
}
|
|
return itacDownloadReport;
|
|
}
|
|
|
|
// map type from ASM namespace to iTAC namespace
|
|
public static DownloadReport get(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport)
|
|
{
|
|
if (asmDownloadReport == null) { return null; }
|
|
DownloadReport itacDownloadReport = new DownloadReport();
|
|
mapAsm2Itac(asmDownloadReport, itacDownloadReport);
|
|
return itacDownloadReport;
|
|
}
|
|
|
|
public static void mapAsm2Itac(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport asmDownloadReport, DownloadReport itacDownloadReport)
|
|
{
|
|
}
|
|
|
|
// maps ASM namespace conform list to iTAC namespace array
|
|
public static DownloadReport[] getArray(IList<Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport> asmDownloadReport)
|
|
{
|
|
if (asmDownloadReport == null) { return null; }
|
|
DownloadReport[] itacDownloadReport = new DownloadReport[asmDownloadReport.Count];
|
|
for (int i = 0; i < asmDownloadReport.Count; i++)
|
|
{
|
|
itacDownloadReport[i] = DownloadReportMapper.get(asmDownloadReport[i]);
|
|
}
|
|
return itacDownloadReport;
|
|
}
|
|
|
|
// maps ASM namespace conform array to iTAC namespace array
|
|
public static DownloadReport[] getArray(Asm.As.Oib.SiplacePro.LineControl.Contracts.Data.DownloadReport[] asmDownloadReport)
|
|
{
|
|
if (asmDownloadReport == null) { return null; }
|
|
DownloadReport[] itacDownloadReport = new DownloadReport[asmDownloadReport.Length];
|
|
for (int i = 0; i < asmDownloadReport.Length; i++)
|
|
{
|
|
itacDownloadReport[i] = DownloadReportMapper.get(asmDownloadReport[i]);
|
|
}
|
|
return itacDownloadReport;
|
|
}
|
|
}
|
|
}
|