Created
January 17, 2012 02:02
-
-
Save lxcid/1624084 to your computer and use it in GitHub Desktop.
LXOperatingHours
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
enum { | |
LXMonday = 1 << 0, | |
LXTuesday = 1 << 1, | |
LXWednesday = 1 << 2, | |
LXThursday = 1 << 3, | |
LXFriday = 1 << 4, | |
LXSaturday = 1 << 5, | |
LXSunday = 1 << 6, | |
}; | |
typedef NSUInteger LXDaysOfTheWeekMask; | |
@interface LXOperatingHours : NSObject | |
@property (assign, nonatomic) LXDaysOfTheWeekMask daysOfTheWeek; | |
@property (strong, nonatomic) NSTimeZone *timeZone; | |
@property (assign, nonatomic) NSUInteger startTime; | |
@property (assign, nonatomic) NSUInteger endTime; | |
@property (assign, nonatomic) BOOL ignorePublicHolidays; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to describe a class structure that can effectively model operating hours.