-
Notifications
You must be signed in to change notification settings - Fork 1
/
scoredDataObjects.cs
48 lines (43 loc) · 1.44 KB
/
scoredDataObjects.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
namespace labfiles
{
public class CustomerOrder {
public string _id { get; set; }
public int customerNumber { get; set; }
public List<Order> orders { get; set; }
public CustomerOrder(){
orders = new List<Order>();
}
}
public class Order {
public int orderNumber { get; set; }
public DateTime? orderDate { get; set; }
public DateTime? requiredDate { get; set; }
public DateTime? shippedDate { get; set; }
public string status { get; set; }
public string comments { get; set; }
public int customerNumber { get; set; }
public List<OrderDetail> details { get; set; }
public Order(){
details = new List<OrderDetail>();
}
}
public class OrderDetail {
public int orderNumber { get; set; }
public int orderLineNumber { get; set; }
public string productName { get; set; }
public string productCode { get; set; }
public decimal priceEach { get; set; }
public int quantityOrdered { get; set; }
public decimal lineTotal { get; set; }
}
public class CustomerContact {
public string customerName { get; set; }
public string phone { get; set; }
}
public class CustomerReport {
public CustomerContact contact { get; set; }
public List<Order> orders { get; set; }
}
}