-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocation.h
44 lines (38 loc) · 980 Bytes
/
Location.h
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
//
// Location.h
// AvocadoTest1
//
// Created by Christophe Biocca on 12-01-27.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "AutomagicalCoder.h"
typedef enum StoreState
{
Open,
Closing,
Closed
} StoreState;
@interface Location : AutomagicalCoder<MKAnnotation, NSCopying, NSCoding>
{
NSString* primaryKey;
NSArray* storeHours;
NSInteger lastCall;
NSDecimalNumber *latitude;
NSDecimalNumber *longitude;
NSString *address;
}
-(id)initFromData:(NSDictionary*)inputData;
@property (retain,readonly) NSString *address;
@property (retain,readonly) NSString *primaryKey;
-(StoreState)storeState;
-(NSDate*)nextOpenAfterThisTime:(NSDate*)date;
-(NSDate*)nextClosedAfterThisTime:(NSDate*)date;
-(NSDate*)opensToday;
-(NSDate*)closesToday;
-(NSDate*)nextOpen;
-(NSDate*)nextClose;
-(NSString*)storeHourBlurb;
-(BOOL)wouldBeOpenAt:(NSDate*)thisTime;
@end