This commit is contained in:
25
server/biz/SockDaysOfWeek.cs
Normal file
25
server/biz/SockDaysOfWeek.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
namespace Sockeye.Biz
|
||||
{
|
||||
/// <summary>
|
||||
/// Days of week
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum SockDaysOfWeek : int
|
||||
{
|
||||
//https://stackoverflow.com/questions/8447/what-does-the-flags-enum-attribute-mean-in-c
|
||||
//MAX 31 (2147483647)!!! or will overflow int and needs to be turned into a long
|
||||
//Must be a power of two: https://en.wikipedia.org/wiki/Power_of_two
|
||||
//bitwise selection of days of week
|
||||
//https://stackoverflow.com/a/24174625/8939
|
||||
|
||||
Monday = 1,
|
||||
Tuesday = 2,
|
||||
Wednesday = 4,
|
||||
Thursday = 8,
|
||||
Friday = 16,
|
||||
Saturday = 32,
|
||||
Sunday = 64
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user