-
Notifications
You must be signed in to change notification settings - Fork 1
/
Parcel.h
35 lines (30 loc) · 1.2 KB
/
Parcel.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
//
// Parcel.h
// Postakocsi
//
// Created by Sandor Kolotenko on 2/25/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "Record.h"
#import <Foundation/Foundation.h>
//This is an object model that represent one parcel.
@interface Parcel : NSObject <NSCoding>
{
NSString* Name; //e.g. "Birthday Present"
NSString* TrackingNumber; //e.g. 211111111
NSMutableArray* TrackingRecords; //Array with object of type "Record"
NSString* LastKnownStatus; //e.g. "Delivered"
NSDate* LastUpdate; //e.g. 2012-10-01 14:55 in DateTime object
NSInteger Service; //e.g. Internal ID for the service being tracked, e.g. 1
BOOL IsDelivered;
BOOL IsTracked;
}
@property (nonatomic, readwrite) BOOL IsTracked;
@property (nonatomic, readwrite) BOOL IsDelivered;
@property (nonatomic, readwrite) NSInteger Service;
@property (nonatomic, retain) NSString* Name;
@property (nonatomic, retain) NSString* TrackingNumber;
@property (nonatomic, retain) NSString* LastKnownStatus;
@property (nonatomic, retain) NSDate* LastUpdate;
@property (nonatomic, retain) NSMutableArray* TrackingRecords;
@end