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

#import "location.h"

@implementation location

@synthesize locationCode;
@synthesize locationName;


-(id) initWithLocationCode:(NSString*)theLocationCode AndLocationName:(NSString*)theLocationName;
{
    locationCode=theLocationCode;
    locationName=theLocationName;
    return self;
}

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

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

}


@end