-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimeSlot.cs
56 lines (47 loc) · 1.17 KB
/
TimeSlot.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
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class TimeSlot
{
public TimeSlot()
{
int type = 0;
day = 0;
instructor = "";
startTime = 0;
length = 0;
location = "";
}
enum WeekDay { M, T, W, Th, F, S, SU };
int day;
int startTime; //indexed by half hour from 0800 please
int length; //in minutes, please
string location;
private string instructor;
public int Day
{
get { return day; }
set { day = value; }
}
public int StartTime
{
get { return startTime; }
set { startTime = value; }
}
public int Length
{
get { return length; }
set { length = value; }
}
public string Location
{
get { return location; }
set { location = value; }
}
public string Instructor
{
get { return instructor; }
set { instructor = value; }
}
}