80 lines
3.0 KiB
C#
80 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
namespace com.itac.oib.traceability.contracts.data
|
|
{
|
|
// source: assembly 3.0.0.0
|
|
// source: assembly ASM.AS.OIB.Client
|
|
public class PingResponseMapper
|
|
{
|
|
// used for itac->asm: True
|
|
// used for asm->itac: True
|
|
|
|
// maps iTAC namespace conform type to ASM namespace type
|
|
public static www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse get(PingResponse pingResponse)
|
|
{
|
|
if (pingResponse == null) { return null; }
|
|
www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse result = new www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse();
|
|
// skip complex property ExtensionData
|
|
return result;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace array
|
|
public static www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse[] get(PingResponse[] pingResponse)
|
|
{
|
|
if (pingResponse == null) { return null; }
|
|
www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse[] result = new www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse[pingResponse.Length];
|
|
for (int i = 0; i < pingResponse.Length; i++)
|
|
{
|
|
// to itac array
|
|
result[i] = PingResponseMapper.get(pingResponse[i]);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
// maps iTAC namespace conform array to ASM namespace list
|
|
public static List<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse> getList(PingResponse[] pingResponse)
|
|
{
|
|
if (pingResponse == null) { return null; }
|
|
List<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse> result = new List<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse>();
|
|
for (int i = 0; i < pingResponse.Length; i++)
|
|
{
|
|
result.Add(PingResponseMapper.get(pingResponse[i]));
|
|
}
|
|
return result;
|
|
}
|
|
|
|
// maps iTAC namespace conform type to ASM namespace type
|
|
public static PingResponse get(www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse pingResponse)
|
|
{
|
|
if (pingResponse == null) { return null; }
|
|
PingResponse result = new PingResponse();
|
|
// skip complex asm property ExtensionData
|
|
return result;
|
|
}
|
|
|
|
// maps ASM namespace conform list to iTAC namespace array
|
|
public static PingResponse[] getArray(List<www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse> pingResponse)
|
|
{
|
|
if (pingResponse == null) { return null; }
|
|
PingResponse[] result = new PingResponse[pingResponse.Count];
|
|
for (int i = 0; i < pingResponse.Count; i++)
|
|
{
|
|
result[i] = PingResponseMapper.get(pingResponse[i]);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
// maps ASM namespace conform array to iTAC namespace array
|
|
public static PingResponse[] getArray(www.siplace.com.OIB._2012._03.Traceability.Contracts.Data.PingResponse[] pingResponse)
|
|
{
|
|
if (pingResponse == null) { return null; }
|
|
PingResponse[] result = new PingResponse[pingResponse.Length];
|
|
for (int i = 0; i < pingResponse.Length; i++)
|
|
{
|
|
result[i] = PingResponseMapper.get(pingResponse[i]);
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
}
|