forked from triplef/LastHistory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LHTimeEvent.m
37 lines (30 loc) · 835 Bytes
/
LHTimeEvent.m
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
//
// LHTimeEvent.m
// LastHistory
//
// Created by Frederik Seiffert on 22.11.09.
// Copyright 2009 Frederik Seiffert. All rights reserved.
//
#import "LHTimeEvent.h"
@implementation LHTimeEvent
@synthesize eventStart=_startDate;
@synthesize eventEnd=_endDate;
@synthesize eventStartTime=_startTime;
@synthesize eventEndTime=_endTime;
- (instancetype)initWithStartTime:(NSInteger)startTime endTime:(NSInteger)endTime
{
self = [self initWithStartDate:nil endDate:nil startTime:startTime endTime:endTime];
return self;
}
- (instancetype)initWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate startTime:(NSInteger)startTime endTime:(NSInteger)endTime
{
self = [super init];
if (self != nil) {
_startDate = startDate;
_endDate = endDate;
_startTime = startTime;
_endTime = endTime;
}
return self;
}
@end