-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathSession.h
More file actions
28 lines (22 loc) · 690 Bytes
/
Session.h
File metadata and controls
28 lines (22 loc) · 690 Bytes
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
//
// Session.h
// Thyme
//
// Created by João Moreno on 6/4/10.
//
#import <CoreData/CoreData.h>
@interface Session : NSManagedObject
{
}
@property (nonatomic, retain) NSString * tag;
@property (nonatomic, retain) NSNumber * hours;
@property (nonatomic, retain) NSNumber * minutes;
@property (nonatomic, retain) NSNumber * seconds;
@property (nonatomic, retain) NSDate * date;
+ (NSArray*)allSessions;
+ (NSArray*)allSessionsAsDictionaries;
+ (Session*)sessionWithSeconds:(NSInteger)_seconds minutes:(NSInteger)_minutes hours:(NSInteger)_hours tag:(NSString*)_tag;
- (NSString*)timeStringRepresentation;
- (NSString*)stringRepresentation;
- (NSDictionary *)asDictionary;
@end