//
//  Immeuble.h
//  Agence
//
//  Created by Olivier Savard on 11-01-21.
//  Copyright 2011 OSInfo Informatique. All rights reserved.
//

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

#define	kFieldID		@"id"
#define	kFieldType		@"type"
#define	kFieldStyle		@"Style"
#define	kFieldAdresse	@"Adresse"
#define	kFieldDistance	@"Distance"
#define kFieldPrix		@"Prix"
#define kFieldLatitude  @"Latitude"
#define kFieldLongitude	@"Longitude"
#define kFieldCoordinate @"Coordinate"

@interface Immeuble : NSObject <NSCoding,MKAnnotation> {
	NSInteger immeubleID;
	NSInteger type;
	NSString *style;
	NSString *adresse;
	NSInteger distance;
	NSInteger prix;
	CLLocationDegrees latitude;
	CLLocationDegrees longitude;
	
	CLLocationCoordinate2D coordinate;
	
}
@property(nonatomic,readwrite) NSInteger immeubleID;
@property (nonatomic,readwrite) NSInteger type;
@property (nonatomic,retain) NSString *style;
@property (nonatomic,retain) NSString *adresse;
@property (nonatomic,readwrite) NSInteger distance;
@property (nonatomic,readwrite) NSInteger prix;
@property (nonatomic,readwrite) CLLocationDegrees latitude;
@property (nonatomic,readwrite) CLLocationDegrees longitude;
@property (nonatomic,readonly) CLLocationCoordinate2D coordinate;

-(void)setCoordinate:(CLLocationCoordinate2D)newCoordinate;


@end
