97 lines
5.4 KiB
C#
97 lines
5.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 06.11.2018 11:16:22
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace com.itac.oib.displayservice.contracts.data
|
|
{
|
|
// source: assembly 5.1.0.84
|
|
// source: assembly ASM.AS.OIB.DisplayService.Contracts
|
|
public class ConfirmationReceivedResponseMapper
|
|
{
|
|
// used for itac->asm: True
|
|
// used for asm->itac: True
|
|
|
|
// maps iTAC namespace conform type to ASM namespace type
|
|
public static Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse get(ConfirmationReceivedResponse itacConfirmationReceivedResponse)
|
|
{
|
|
if (itacConfirmationReceivedResponse == null) { return null; }
|
|
Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse asmConfirmationReceivedResponse = new Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse();
|
|
mapItac2Asm(asmConfirmationReceivedResponse, itacConfirmationReceivedResponse);
|
|
return asmConfirmationReceivedResponse;
|
|
}
|
|
|
|
public static void mapItac2Asm(Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse asmConfirmationReceivedResponse, ConfirmationReceivedResponse itacConfirmationReceivedResponse)
|
|
{
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace array
|
|
public static Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse[] get(ConfirmationReceivedResponse[] itacConfirmationReceivedResponse)
|
|
{
|
|
if (itacConfirmationReceivedResponse == null) { return null; }
|
|
Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse[] asmConfirmationReceivedResponse = new Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse[itacConfirmationReceivedResponse.Length];
|
|
for (int i = 0; i < itacConfirmationReceivedResponse.Length; i++)
|
|
{
|
|
// to itac array
|
|
asmConfirmationReceivedResponse[i] = ConfirmationReceivedResponseMapper.get(itacConfirmationReceivedResponse[i]);
|
|
}
|
|
return asmConfirmationReceivedResponse;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace list
|
|
public static List<Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse> getList(ConfirmationReceivedResponse[] asmConfirmationReceivedResponse)
|
|
{
|
|
if (asmConfirmationReceivedResponse == null) { return null; }
|
|
List<Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse> itacConfirmationReceivedResponse = new List<Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse>();
|
|
for (int i = 0; i < asmConfirmationReceivedResponse.Length; i++)
|
|
{
|
|
itacConfirmationReceivedResponse.Add(ConfirmationReceivedResponseMapper.get(asmConfirmationReceivedResponse[i]));
|
|
}
|
|
return itacConfirmationReceivedResponse;
|
|
}
|
|
|
|
// map type from ASM namespace to iTAC namespace
|
|
public static ConfirmationReceivedResponse get(Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse asmConfirmationReceivedResponse)
|
|
{
|
|
if (asmConfirmationReceivedResponse == null) { return null; }
|
|
ConfirmationReceivedResponse itacConfirmationReceivedResponse = new ConfirmationReceivedResponse();
|
|
mapAsm2Itac(asmConfirmationReceivedResponse, itacConfirmationReceivedResponse);
|
|
return itacConfirmationReceivedResponse;
|
|
}
|
|
|
|
public static void mapAsm2Itac(Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse asmConfirmationReceivedResponse, ConfirmationReceivedResponse itacConfirmationReceivedResponse)
|
|
{
|
|
}
|
|
|
|
// maps ASM namespace conform list to iTAC namespace array
|
|
public static ConfirmationReceivedResponse[] getArray(IList<Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse> asmConfirmationReceivedResponse)
|
|
{
|
|
if (asmConfirmationReceivedResponse == null) { return null; }
|
|
ConfirmationReceivedResponse[] itacConfirmationReceivedResponse = new ConfirmationReceivedResponse[asmConfirmationReceivedResponse.Count];
|
|
for (int i = 0; i < asmConfirmationReceivedResponse.Count; i++)
|
|
{
|
|
itacConfirmationReceivedResponse[i] = ConfirmationReceivedResponseMapper.get(asmConfirmationReceivedResponse[i]);
|
|
}
|
|
return itacConfirmationReceivedResponse;
|
|
}
|
|
|
|
// maps ASM namespace conform array to iTAC namespace array
|
|
public static ConfirmationReceivedResponse[] getArray(Asm.As.Oib.DisplayService.Contracts.Messages.ConfirmationReceivedResponse[] asmConfirmationReceivedResponse)
|
|
{
|
|
if (asmConfirmationReceivedResponse == null) { return null; }
|
|
ConfirmationReceivedResponse[] itacConfirmationReceivedResponse = new ConfirmationReceivedResponse[asmConfirmationReceivedResponse.Length];
|
|
for (int i = 0; i < asmConfirmationReceivedResponse.Length; i++)
|
|
{
|
|
itacConfirmationReceivedResponse[i] = ConfirmationReceivedResponseMapper.get(asmConfirmationReceivedResponse[i]);
|
|
}
|
|
return itacConfirmationReceivedResponse;
|
|
}
|
|
}
|
|
}
|