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

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