-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConvertor.cs
27 lines (26 loc) · 993 Bytes
/
Convertor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using BenchmarkSourceGenerator.Dtos;
namespace BenchmarkSourceGenerator
{
public static class Convertor
{
public static ResponseDto ToResponse(RequestDto requestDto)
{
return new ResponseDto
{
ResponseBool = requestDto.RequestBool,
ResponseDate = requestDto.RequestDate,
ResponseGuid = requestDto.RequestGuid,
ResponseNumber = requestDto.RequestNumber,
ResponseType = requestDto.RequestType,
ResponsePayload = new PayloadDto
{
Number = requestDto.RequestPayload.Number,
DateTime = requestDto.RequestPayload.DateTime,
PayloadGuid = requestDto.RequestPayload.PayloadGuid,
PayloadBool = requestDto.RequestPayload.PayloadBool,
PayloadString = requestDto.RequestPayload.PayloadString
}
};
}
}
}