Skip to content

Commit 049b049

Browse files
committed
Add TestUploadWithDto
1 parent 50146ca commit 049b049

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

Test.ServiceModel/FileUploads.cs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#nullable enable
22

3+
using System;
34
using System.Collections.Generic;
45
using System.IO;
56
using ServiceStack;
67
using ServiceStack.DataAnnotations;
8+
using Test.ServiceModel.Types;
79

810
namespace Test.ServiceModel;
911

@@ -100,4 +102,28 @@ public class TestFileUploadsResponse
100102
public string? RefId { get; set; }
101103
public List<UploadInfo> Files { get; set; } = [];
102104
public ResponseStatus? ResponseStatus { get; set; }
103-
}
105+
}
106+
107+
public class TestUploadWithDto : IPost, IReturn<TestUploadWithDto>
108+
{
109+
public int Int { get; set; }
110+
public int? NullableId { get; set; }
111+
public long Long { get; set; }
112+
public double Double { get; set; }
113+
public string String { get; set; }
114+
public DateTime DateTime { get; set; }
115+
116+
public int[]? IntArray { get; set; }
117+
public List<int>? IntList { get; set; }
118+
public string[]? StringArray { get; set; }
119+
public List<string>? StringList { get; set; }
120+
public Poco[]? PocoArray { get; set; }
121+
public List<Poco>? PocoList { get; set; }
122+
public byte?[]? NullableByteArray { get; set; }
123+
public List<byte?>? NullableByteList { get; set; }
124+
public DateTime?[]? NullableDateTimeArray { get; set; }
125+
public List<DateTime?>? NullableDateTimeList { get; set; }
126+
public Dictionary<string, List<Poco>>? PocoLookup { get; set; }
127+
public Dictionary<string, List<Dictionary<string,Poco>>>? PocoLookupMap { get; set; }
128+
public Dictionary<string, List<string>>? MapList { get; set; }
129+
}

0 commit comments

Comments
 (0)