-
Notifications
You must be signed in to change notification settings - Fork 0
/
Week.cs
42 lines (39 loc) · 1.15 KB
/
Week.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
using KCalendar.Core.Contract;
namespace KCalendar.Core
{
public class Week : IWeek
{
public Week(string name, string shortName, int dayIndex, bool isRestDay)
{
Name = name;
ShortName = shortName;
DayIndex = dayIndex;
IsRestDay = isRestDay;
}
public Week(string name, string shortName, int dayIndex)
{
Name = name;
ShortName = shortName;
DayIndex = dayIndex;
IsRestDay = false;
}
public Week(string name, int dayIndex)
{
Name = name;
ShortName = name[0].ToString();
DayIndex = dayIndex;
IsRestDay = false;
}
public Week(string name,int dayIndex, bool isRestDay)
{
Name = name;
ShortName = name[0].ToString();
DayIndex = dayIndex;
IsRestDay = isRestDay;
}
public string Name { get; private set; }
public string ShortName { get; private set; }
public int DayIndex { get; private set; }
public bool IsRestDay { get; private set; }
}
}