-
Notifications
You must be signed in to change notification settings - Fork 2
/
C# Classes
47 lines (45 loc) · 1.37 KB
/
C# Classes
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
// So my web service returns a serialize version of this
[Serializable()]
public class DataTableResponse
{
public int draw { get; set; }
public int recordsTotal { get; set; }
public int recordsFiltered { get; set; }
public List<dtData> data { get; set; }
public DataTableResponse() { }
}
[Serializable()]
public class DataTableParameter
{
public int draw { get; set; }
public int length { get; set; }
public int start { get; set; }
public List<columm> columns { get; set; }
}
[Serializable()]
public class columm
{
public string data { get; set; }
public string name { get; set; }
public Boolean searchable { get; set; }
public Boolean orderable { get; set; }
public searchValue Search { get; set; }
}
[Serializable()]
public class searchValue
{
public string value { get; set; }
public Boolean regex { get; set; }
}
// Single datatable row
[Serializable()]
public class dtData
{
public int employeeId { get; set; }
public string name { get; set; }
public string position { get; set; }
public Int32 salary { get; set; }
public string start_date { get; set; }
public string office { get; set; }
public string extn { get; set; }
}