forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBatchWidgetValidationService.cs
More file actions
72 lines (60 loc) · 1.43 KB
/
BatchWidgetValidationService.cs
File metadata and controls
72 lines (60 loc) · 1.43 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using System;
using System.Runtime.Serialization;
using ServiceStack.ServiceHost;
namespace ServiceStack.WebHost.IntegrationTests.Services
{
[DataContract]
[Route("/BatchWidgetValidation")]
public class BatchWidgetValidationRequest
{
[DataMember]
public WidgetValidationRequest[] Batch { get; set; }
}
[DataContract]
public class BatchWidgetValidationResponse
{
[DataMember]
public WidgetValidationResponse[] Batch { get; set; }
}
public class BatchWidgetValidationRequestService
: IService<BatchWidgetValidationRequest>
{
public object Execute(BatchWidgetValidationRequest request)
{
throw new NotImplementedException();
}
}
[DataContract]
[Route("/WidgetValidation")]
public class WidgetValidationRequest
{
[DataMember]
public int OwnerID { get; set; }
[DataMember]
public string SellerID { get; set; }
[DataMember]
public string WidgetNumber { get; set; }
[DataMember]
public string Quantity { get; set; }
}
[DataContract]
public class WidgetValidationResponse
{
[DataMember]
public string SellerWidgetNumber { get; set; }
[DataMember]
public string MatchType { get; set; }
[DataMember]
public decimal WidgetPrice { get; set; }
[DataMember]
public string WidgetName { get; set; }
}
public class WidgetValidationRequestService
: IService<WidgetValidationRequest>
{
public object Execute(WidgetValidationRequest request)
{
throw new NotImplementedException();
}
}
}