//
//  location.m
//  AW139MP
//
//  Created by KulanaMac on 1/10/14.
//
//

#import "dispatcherFlight.h"

@implementation dispatcherFlight

@synthesize flightCode;
@synthesize flightName;


-(id) initWithFlightCode:(NSString*)theFlightCode AndFlightName:(NSString*)theFlightName;
{
    flightCode=theFlightCode;
    flightName=theFlightName;
    return self;
}

- (id) initWithCoder: (NSCoder *)coder
{
    if (self = [super init])
    {
    	self.flightCode = [coder decodeObjectForKey:@"flightCode"];
    	self.flightName = [coder decodeObjectForKey:@"flightName"];
    }
    return self;
}

- (void) encodeWithCoder: (NSCoder *)coder
{
    [coder encodeObject:flightCode forKey:@"flightCode"];
    [coder encodeObject:flightName forKey:@"flightName"];

}


@end