/* * 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 SendMessageResponseMapper { // 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.SendMessageResponse get(SendMessageResponse itacSendMessageResponse) { if (itacSendMessageResponse == null) { return null; } Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse asmSendMessageResponse = new Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse(); mapItac2Asm(asmSendMessageResponse, itacSendMessageResponse); return asmSendMessageResponse; } public static void mapItac2Asm(Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse asmSendMessageResponse, SendMessageResponse itacSendMessageResponse) { } // maps iTAC namespace conform array to ASM namespace array public static Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse[] get(SendMessageResponse[] itacSendMessageResponse) { if (itacSendMessageResponse == null) { return null; } Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse[] asmSendMessageResponse = new Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse[itacSendMessageResponse.Length]; for (int i = 0; i < itacSendMessageResponse.Length; i++) { // to itac array asmSendMessageResponse[i] = SendMessageResponseMapper.get(itacSendMessageResponse[i]); } return asmSendMessageResponse; } // maps iTAC namespace conform array to ASM namespace list public static List getList(SendMessageResponse[] asmSendMessageResponse) { if (asmSendMessageResponse == null) { return null; } List itacSendMessageResponse = new List(); for (int i = 0; i < asmSendMessageResponse.Length; i++) { itacSendMessageResponse.Add(SendMessageResponseMapper.get(asmSendMessageResponse[i])); } return itacSendMessageResponse; } // map type from ASM namespace to iTAC namespace public static SendMessageResponse get(Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse asmSendMessageResponse) { if (asmSendMessageResponse == null) { return null; } SendMessageResponse itacSendMessageResponse = new SendMessageResponse(); mapAsm2Itac(asmSendMessageResponse, itacSendMessageResponse); return itacSendMessageResponse; } public static void mapAsm2Itac(Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse asmSendMessageResponse, SendMessageResponse itacSendMessageResponse) { } // maps ASM namespace conform list to iTAC namespace array public static SendMessageResponse[] getArray(IList asmSendMessageResponse) { if (asmSendMessageResponse == null) { return null; } SendMessageResponse[] itacSendMessageResponse = new SendMessageResponse[asmSendMessageResponse.Count]; for (int i = 0; i < asmSendMessageResponse.Count; i++) { itacSendMessageResponse[i] = SendMessageResponseMapper.get(asmSendMessageResponse[i]); } return itacSendMessageResponse; } // maps ASM namespace conform array to iTAC namespace array public static SendMessageResponse[] getArray(Asm.As.Oib.DisplayService.Contracts.Messages.SendMessageResponse[] asmSendMessageResponse) { if (asmSendMessageResponse == null) { return null; } SendMessageResponse[] itacSendMessageResponse = new SendMessageResponse[asmSendMessageResponse.Length]; for (int i = 0; i < asmSendMessageResponse.Length; i++) { itacSendMessageResponse[i] = SendMessageResponseMapper.get(asmSendMessageResponse[i]); } return itacSendMessageResponse; } } }