//
//  FuelService.h
//  TopUp
//
//  Created by Frank McPherson on 5/20/10.
//  Copyright 2010 intrepidinnovations.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

typedef enum {
	IIFuelEconomyStyleUSMPG		// miles per US liquid gallon
	/*
	IIFuelEconomyStyleUSGPM,	// US liquid gallons per mile
	IIFuelEconomyStyleUKMPG,	// miles per Imperial gallon
	IIFuelEconomyStyleUKGPM,	// Imperial gallons per mile
	IIFuelEconomyStyleSI		// International System of Units 
	*/
} IIFuelEconomyStyle;

@interface FuelService : NSObject <NSCoding> {
	NSDate *serviceDate;
	NSNumber *costPerUnit;
	NSNumber *odometerValue;
	NSNumber *fuelAdded;
	NSNumber *totalCost;
	NSString *currency;
	CLLocation *location;
	IIFuelEconomyStyle fuelEconomyStyle; // TODO FHM should this be app-wide?
}
@property (nonatomic, copy) NSDate *serviceDate;
@property (nonatomic, copy) NSNumber *costPerUnit;
@property (nonatomic, copy) NSNumber *odometerValue;
@property (nonatomic, copy) NSNumber *fuelAdded;
@property (nonatomic, copy) NSNumber *totalCost;
@property (nonatomic, copy) CLLocation *location;
@property (nonatomic, copy) NSString *currency;
@property (nonatomic, assign) IIFuelEconomyStyle fuelEconomyStyle;

- (id)initWithServiceDate:(NSDate *)date;
- (id)initWithServiceDate:(NSDate *)date
			  costPerUnit:(NSNumber *)unitCost
			odometerValue:(NSNumber *)odometer
				fuelAdded:(NSNumber *)fuel
				totalCost:(NSNumber *)cost
				 currency:(NSString *)theCurrency
				 location:(CLLocation *)where
		 fuelEconomyStyle:(IIFuelEconomyStyle)style;

@end
